function ev(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function wr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ed={exports:{}},ts={},kd={exports:{}},F={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Po=Symbol.for("react.element"),tv=Symbol.for("react.portal"),nv=Symbol.for("react.fragment"),rv=Symbol.for("react.strict_mode"),ov=Symbol.for("react.profiler"),iv=Symbol.for("react.provider"),sv=Symbol.for("react.context"),av=Symbol.for("react.forward_ref"),lv=Symbol.for("react.suspense"),uv=Symbol.for("react.memo"),cv=Symbol.for("react.lazy"),Zu=Symbol.iterator;function fv(e){return e===null||typeof e!="object"?null:(e=Zu&&e[Zu]||e["@@iterator"],typeof e=="function"?e:null)}var Ad={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Rd=Object.assign,Md={};function xr(e,t,n){this.props=e,this.context=t,this.refs=Md,this.updater=n||Ad}xr.prototype.isReactComponent={};xr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};xr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ld(){}Ld.prototype=xr.prototype;function Nl(e,t,n){this.props=e,this.context=t,this.refs=Md,this.updater=n||Ad}var Ol=Nl.prototype=new Ld;Ol.constructor=Nl;Rd(Ol,xr.prototype);Ol.isPureReactComponent=!0;var qu=Array.isArray,Nd=Object.prototype.hasOwnProperty,Dl={current:null},Od={key:!0,ref:!0,__self:!0,__source:!0};function Dd(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)Nd.call(t,r)&&!Od.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1>>1,U=R[b];if(0>>1;bo(jn,I))Beo(cn,jn)?(R[b]=cn,R[Be]=I,b=Be):(R[b]=jn,R[ze]=I,b=ze);else if(Beo(cn,I))R[b]=cn,R[Be]=I,b=Be;else break e}}return N}function o(R,N){var I=R.sortIndex-N.sortIndex;return I!==0?I:R.id-N.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,f=null,d=3,h=!1,y=!1,v=!1,x=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(R){for(var N=n(u);N!==null;){if(N.callback===null)r(u);else if(N.startTime<=R)r(u),N.sortIndex=N.expirationTime,t(l,N);else break;N=n(u)}}function w(R){if(v=!1,m(R),!y)if(n(l)!==null)y=!0,B(T);else{var N=n(u);N!==null&&ce(w,N.startTime-R)}}function T(R,N){y=!1,v&&(v=!1,g(k),k=-1),h=!0;var I=d;try{for(m(N),f=n(l);f!==null&&(!(f.expirationTime>N)||R&&!H());){var b=f.callback;if(typeof b=="function"){f.callback=null,d=f.priorityLevel;var U=b(f.expirationTime<=N);N=e.unstable_now(),typeof U=="function"?f.callback=U:f===n(l)&&r(l),m(N)}else r(l);f=n(l)}if(f!==null)var G=!0;else{var ze=n(u);ze!==null&&ce(w,ze.startTime-N),G=!1}return G}finally{f=null,d=I,h=!1}}var P=!1,C=null,k=-1,O=5,D=-1;function H(){return!(e.unstable_now()-DR||125b?(R.sortIndex=I,t(u,R),n(l)===null&&R===n(u)&&(v?(g(k),k=-1):v=!0,ce(w,I-b))):(R.sortIndex=U,t(l,R),y||h||(y=!0,B(T))),R},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(R){var N=d;return function(){var I=d;d=N;try{return R.apply(this,arguments)}finally{d=I}}}})(jd);Id.exports=jd;var Cv=Id.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Pv=S,Ge=Cv;function A(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ma=Object.prototype.hasOwnProperty,Ev=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ec={},tc={};function kv(e){return ma.call(tc,e)?!0:ma.call(ec,e)?!1:Ev.test(e)?tc[e]=!0:(ec[e]=!0,!1)}function Av(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Rv(e,t,n,r){if(t===null||typeof t>"u"||Av(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ne(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var xe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){xe[e]=new Ne(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];xe[t]=new Ne(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){xe[e]=new Ne(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){xe[e]=new Ne(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){xe[e]=new Ne(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){xe[e]=new Ne(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){xe[e]=new Ne(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){xe[e]=new Ne(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){xe[e]=new Ne(e,5,!1,e.toLowerCase(),null,!1,!1)});var _l=/[\-:]([a-z])/g;function Vl(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(_l,Vl);xe[t]=new Ne(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(_l,Vl);xe[t]=new Ne(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(_l,Vl);xe[t]=new Ne(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){xe[e]=new Ne(e,1,!1,e.toLowerCase(),null,!1,!1)});xe.xlinkHref=new Ne("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){xe[e]=new Ne(e,1,!1,e.toLowerCase(),null,!0,!0)});function Il(e,t,n,r){var o=xe.hasOwnProperty(t)?xe[t]:null;(o!==null?o.type!==0:r||!(2a||o[s]!==i[a]){var l=` `+o[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Ms=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ir(e):""}function Mv(e){switch(e.tag){case 5:return Ir(e.type);case 16:return Ir("Lazy");case 13:return Ir("Suspense");case 19:return Ir("SuspenseList");case 0:case 2:case 15:return e=Ls(e.type,!1),e;case 11:return e=Ls(e.type.render,!1),e;case 1:return e=Ls(e.type,!0),e;default:return""}}function wa(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Un:return"Fragment";case Bn:return"Portal";case ga:return"Profiler";case jl:return"StrictMode";case va:return"Suspense";case ya:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Bd:return(e.displayName||"Context")+".Consumer";case zd:return(e._context.displayName||"Context")+".Provider";case Fl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case zl:return t=e.displayName||null,t!==null?t:wa(e.type)||"Memo";case jt:t=e._payload,e=e._init;try{return wa(e(t))}catch{}}return null}function Lv(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return wa(t);case 8:return t===jl?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function tn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function $d(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Nv(e){var t=$d(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function jo(e){e._valueTracker||(e._valueTracker=Nv(e))}function Hd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$d(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Si(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function xa(e,t){var n=t.checked;return se({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function rc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=tn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Wd(e,t){t=t.checked,t!=null&&Il(e,"checked",t,!1)}function Sa(e,t){Wd(e,t);var n=tn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ta(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ta(e,t.type,tn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function oc(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ta(e,t,n){(t!=="number"||Si(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var jr=Array.isArray;function rr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Fo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function no(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ur={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ov=["Webkit","ms","Moz","O"];Object.keys(Ur).forEach(function(e){Ov.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ur[t]=Ur[e]})});function Qd(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ur.hasOwnProperty(e)&&Ur[e]?(""+t).trim():t+"px"}function Xd(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Qd(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Dv=se({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ea(e,t){if(t){if(Dv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(A(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(A(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(A(61))}if(t.style!=null&&typeof t.style!="object")throw Error(A(62))}}function ka(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Aa=null;function Bl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ra=null,or=null,ir=null;function ac(e){if(e=Ao(e)){if(typeof Ra!="function")throw Error(A(280));var t=e.stateNode;t&&(t=ss(t),Ra(e.stateNode,e.type,t))}}function Zd(e){or?ir?ir.push(e):ir=[e]:or=e}function qd(){if(or){var e=or,t=ir;if(ir=or=null,ac(e),t)for(e=0;e>>=0,e===0?32:31-(Hv(e)/Wv|0)|0}var zo=64,Bo=4194304;function Fr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ei(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=Fr(a):(i&=s,i!==0&&(r=Fr(i)))}else s=n&~o,s!==0?r=Fr(s):i!==0&&(r=Fr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Eo(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ct(t),e[t]=n}function Qv(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Hr),gc=String.fromCharCode(32),vc=!1;function yp(e,t){switch(e){case"keyup":return Cy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var $n=!1;function Ey(e,t){switch(e){case"compositionend":return wp(t);case"keypress":return t.which!==32?null:(vc=!0,gc);case"textInput":return e=t.data,e===gc&&vc?null:e;default:return null}}function ky(e,t){if($n)return e==="compositionend"||!Ql&&yp(e,t)?(e=gp(),ui=Gl=$t=null,$n=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Sc(n)}}function Cp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Cp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Pp(){for(var e=window,t=Si();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Si(e.document)}return t}function Xl(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function _y(e){var t=Pp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Cp(n.ownerDocument.documentElement,n)){if(r!==null&&Xl(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Tc(n,i);var s=Tc(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Hn=null,ba=null,Gr=null,_a=!1;function Cc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;_a||Hn==null||Hn!==Si(r)||(r=Hn,"selectionStart"in r&&Xl(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Gr&&lo(Gr,r)||(Gr=r,r=Ri(ba,"onSelect"),0Kn||(e.current=Ba[Kn],Ba[Kn]=null,Kn--)}function K(e,t){Kn++,Ba[Kn]=e.current,e.current=t}var nn={},Ee=an(nn),Ve=an(!1),En=nn;function fr(e,t){var n=e.type.contextTypes;if(!n)return nn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ie(e){return e=e.childContextTypes,e!=null}function Li(){X(Ve),X(Ee)}function Lc(e,t,n){if(Ee.current!==nn)throw Error(A(168));K(Ee,t),K(Ve,n)}function Dp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(A(108,Lv(e)||"Unknown",o));return se({},n,r)}function Ni(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||nn,En=Ee.current,K(Ee,e),K(Ve,Ve.current),!0}function Nc(e,t,n){var r=e.stateNode;if(!r)throw Error(A(169));n?(e=Dp(e,t,En),r.__reactInternalMemoizedMergedChildContext=e,X(Ve),X(Ee),K(Ee,e)):X(Ve),K(Ve,n)}var Tt=null,as=!1,Hs=!1;function bp(e){Tt===null?Tt=[e]:Tt.push(e)}function Ky(e){as=!0,bp(e)}function ln(){if(!Hs&&Tt!==null){Hs=!0;var e=0,t=W;try{var n=Tt;for(W=1;e>=s,o-=s,Ct=1<<32-ct(t)+o|n<k?(O=C,C=null):O=C.sibling;var D=d(g,C,m[k],w);if(D===null){C===null&&(C=O);break}e&&C&&D.alternate===null&&t(g,C),p=i(D,p,k),P===null?T=D:P.sibling=D,P=D,C=O}if(k===m.length)return n(g,C),te&&pn(g,k),T;if(C===null){for(;kk?(O=C,C=null):O=C.sibling;var H=d(g,C,D.value,w);if(H===null){C===null&&(C=O);break}e&&C&&H.alternate===null&&t(g,C),p=i(H,p,k),P===null?T=H:P.sibling=H,P=H,C=O}if(D.done)return n(g,C),te&&pn(g,k),T;if(C===null){for(;!D.done;k++,D=m.next())D=f(g,D.value,w),D!==null&&(p=i(D,p,k),P===null?T=D:P.sibling=D,P=D);return te&&pn(g,k),T}for(C=r(g,C);!D.done;k++,D=m.next())D=h(C,g,k,D.value,w),D!==null&&(e&&D.alternate!==null&&C.delete(D.key===null?k:D.key),p=i(D,p,k),P===null?T=D:P.sibling=D,P=D);return e&&C.forEach(function(_){return t(g,_)}),te&&pn(g,k),T}function x(g,p,m,w){if(typeof m=="object"&&m!==null&&m.type===Un&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Io:e:{for(var T=m.key,P=p;P!==null;){if(P.key===T){if(T=m.type,T===Un){if(P.tag===7){n(g,P.sibling),p=o(P,m.props.children),p.return=g,g=p;break e}}else if(P.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===jt&&bc(T)===P.type){n(g,P.sibling),p=o(P,m.props),p.ref=Rr(g,P,m),p.return=g,g=p;break e}n(g,P);break}else t(g,P);P=P.sibling}m.type===Un?(p=Cn(m.props.children,g.mode,w,m.key),p.return=g,g=p):(w=vi(m.type,m.key,m.props,null,g.mode,w),w.ref=Rr(g,p,m),w.return=g,g=w)}return s(g);case Bn:e:{for(P=m.key;p!==null;){if(p.key===P)if(p.tag===4&&p.stateNode.containerInfo===m.containerInfo&&p.stateNode.implementation===m.implementation){n(g,p.sibling),p=o(p,m.children||[]),p.return=g,g=p;break e}else{n(g,p);break}else t(g,p);p=p.sibling}p=qs(m,g.mode,w),p.return=g,g=p}return s(g);case jt:return P=m._init,x(g,p,P(m._payload),w)}if(jr(m))return y(g,p,m,w);if(Cr(m))return v(g,p,m,w);Yo(g,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,p!==null&&p.tag===6?(n(g,p.sibling),p=o(p,m),p.return=g,g=p):(n(g,p),p=Zs(m,g.mode,w),p.return=g,g=p),s(g)):n(g,p)}return x}var pr=jp(!0),Fp=jp(!1),bi=an(null),_i=null,Xn=null,eu=null;function tu(){eu=Xn=_i=null}function nu(e){var t=bi.current;X(bi),e._currentValue=t}function Ha(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ar(e,t){_i=e,eu=Xn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(_e=!0),e.firstContext=null)}function nt(e){var t=e._currentValue;if(eu!==e)if(e={context:e,memoizedValue:t,next:null},Xn===null){if(_i===null)throw Error(A(308));Xn=e,_i.dependencies={lanes:0,firstContext:e}}else Xn=Xn.next=e;return t}var yn=null;function ru(e){yn===null?yn=[e]:yn.push(e)}function zp(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,ru(t)):(n.next=o.next,o.next=n),t.interleaved=n,Nt(e,r)}function Nt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Ft=!1;function ou(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Bp(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function kt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Qt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,$&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Nt(e,n)}return o=r.interleaved,o===null?(t.next=t,ru(r)):(t.next=o.next,o.next=t),r.interleaved=t,Nt(e,n)}function fi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$l(e,n)}}function _c(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Vi(e,t,n,r){var o=e.updateQueue;Ft=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(i!==null){var f=o.baseState;s=0,c=u=l=null,a=i;do{var d=a.lane,h=a.eventTime;if((r&d)===d){c!==null&&(c=c.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var y=e,v=a;switch(d=t,h=n,v.tag){case 1:if(y=v.payload,typeof y=="function"){f=y.call(h,f,d);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=v.payload,d=typeof y=="function"?y.call(h,f,d):y,d==null)break e;f=se({},f,d);break e;case 2:Ft=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,d=o.effects,d===null?o.effects=[a]:d.push(a))}else h={eventTime:h,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=h,l=f):c=c.next=h,s|=d;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;d=a,a=d.next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}while(1);if(c===null&&(l=f),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Rn|=s,e.lanes=s,e.memoizedState=f}}function Vc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Gs.transition;Gs.transition={};try{e(!1),t()}finally{W=n,Gs.transition=r}}function oh(){return rt().memoizedState}function Zy(e,t,n){var r=Zt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ih(e))sh(t,n);else if(n=zp(e,t,n,r),n!==null){var o=Me();ft(n,e,r,o),ah(n,t,r)}}function qy(e,t,n){var r=Zt(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ih(e))sh(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,dt(a,s)){var l=t.interleaved;l===null?(o.next=o,ru(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=zp(e,t,o,r),n!==null&&(o=Me(),ft(n,e,r,o),ah(n,t,r))}}function ih(e){var t=e.alternate;return e===ie||t!==null&&t===ie}function sh(e,t){Kr=ji=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ah(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$l(e,n)}}var Fi={readContext:nt,useCallback:Se,useContext:Se,useEffect:Se,useImperativeHandle:Se,useInsertionEffect:Se,useLayoutEffect:Se,useMemo:Se,useReducer:Se,useRef:Se,useState:Se,useDebugValue:Se,useDeferredValue:Se,useTransition:Se,useMutableSource:Se,useSyncExternalStore:Se,useId:Se,unstable_isNewReconciler:!1},Jy={readContext:nt,useCallback:function(e,t){return ht().memoizedState=[e,t===void 0?null:t],e},useContext:nt,useEffect:jc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,pi(4194308,4,Jp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return pi(4194308,4,e,t)},useInsertionEffect:function(e,t){return pi(4,2,e,t)},useMemo:function(e,t){var n=ht();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ht();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Zy.bind(null,ie,e),[r.memoizedState,e]},useRef:function(e){var t=ht();return e={current:e},t.memoizedState=e},useState:Ic,useDebugValue:du,useDeferredValue:function(e){return ht().memoizedState=e},useTransition:function(){var e=Ic(!1),t=e[0];return e=Xy.bind(null,e[1]),ht().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ie,o=ht();if(te){if(n===void 0)throw Error(A(407));n=n()}else{if(n=t(),ve===null)throw Error(A(349));An&30||Wp(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,jc(Kp.bind(null,r,i,e),[e]),r.flags|=2048,vo(9,Gp.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=ht(),t=ve.identifierPrefix;if(te){var n=Pt,r=Ct;n=(r&~(1<<32-ct(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=mo++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[mt]=t,e[fo]=r,vh(e,t,!1,!1),t.stateNode=e;e:{switch(s=ka(n,r),n){case"dialog":Q("cancel",e),Q("close",e),o=r;break;case"iframe":case"object":case"embed":Q("load",e),o=r;break;case"video":case"audio":for(o=0;ogr&&(t.flags|=128,r=!0,Mr(i,!1),t.lanes=4194304)}else{if(!r)if(e=Ii(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Mr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!te)return Te(t),null}else 2*fe()-i.renderingStartTime>gr&&n!==1073741824&&(t.flags|=128,r=!0,Mr(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=fe(),t.sibling=null,n=re.current,K(re,r?n&1|2:n&1),t):(Te(t),null);case 22:case 23:return yu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ue&1073741824&&(Te(t),t.subtreeFlags&6&&(t.flags|=8192)):Te(t),null;case 24:return null;case 25:return null}throw Error(A(156,t.tag))}function a0(e,t){switch(ql(t),t.tag){case 1:return Ie(t.type)&&Li(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return hr(),X(Ve),X(Ee),au(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return su(t),null;case 13:if(X(re),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));dr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return X(re),null;case 4:return hr(),null;case 10:return nu(t.type._context),null;case 22:case 23:return yu(),null;case 24:return null;default:return null}}var Xo=!1,Pe=!1,l0=typeof WeakSet=="function"?WeakSet:Set,M=null;function Zn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ae(e,t,r)}else n.current=null}function Ja(e,t,n){try{n()}catch(r){ae(e,t,r)}}var Qc=!1;function u0(e,t){if(Va=ki,e=Pp(),Xl(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var h;f!==n||o!==0&&f.nodeType!==3||(a=s+o),f!==i||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===n&&++u===o&&(a=s),d===i&&++c===r&&(l=s),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ia={focusedElem:e,selectionRange:n},ki=!1,M=t;M!==null;)if(t=M,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,M=e;else for(;M!==null;){t=M;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var v=y.memoizedProps,x=y.memoizedState,g=t.stateNode,p=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:st(t.type,v),x);g.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(A(163))}}catch(w){ae(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,M=e;break}M=t.return}return y=Qc,Qc=!1,y}function Yr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Ja(t,n,i)}o=o.next}while(o!==r)}}function cs(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function el(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function xh(e){var t=e.alternate;t!==null&&(e.alternate=null,xh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[mt],delete t[fo],delete t[za],delete t[Wy],delete t[Gy])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Sh(e){return e.tag===5||e.tag===3||e.tag===4}function Xc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Sh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function tl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Mi));else if(r!==4&&(e=e.child,e!==null))for(tl(e,t,n),e=e.sibling;e!==null;)tl(e,t,n),e=e.sibling}function nl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(nl(e,t,n),e=e.sibling;e!==null;)nl(e,t,n),e=e.sibling}var ye=null,at=!1;function _t(e,t,n){for(n=n.child;n!==null;)Th(e,t,n),n=n.sibling}function Th(e,t,n){if(gt&&typeof gt.onCommitFiberUnmount=="function")try{gt.onCommitFiberUnmount(ns,n)}catch{}switch(n.tag){case 5:Pe||Zn(n,t);case 6:var r=ye,o=at;ye=null,_t(e,t,n),ye=r,at=o,ye!==null&&(at?(e=ye,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ye.removeChild(n.stateNode));break;case 18:ye!==null&&(at?(e=ye,n=n.stateNode,e.nodeType===8?$s(e.parentNode,n):e.nodeType===1&&$s(e,n),so(e)):$s(ye,n.stateNode));break;case 4:r=ye,o=at,ye=n.stateNode.containerInfo,at=!0,_t(e,t,n),ye=r,at=o;break;case 0:case 11:case 14:case 15:if(!Pe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&Ja(n,t,s),o=o.next}while(o!==r)}_t(e,t,n);break;case 1:if(!Pe&&(Zn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ae(n,t,a)}_t(e,t,n);break;case 21:_t(e,t,n);break;case 22:n.mode&1?(Pe=(r=Pe)||n.memoizedState!==null,_t(e,t,n),Pe=r):_t(e,t,n);break;default:_t(e,t,n)}}function Zc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new l0),t.forEach(function(r){var o=y0.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function ot(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=fe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*f0(r/1960))-r,10e?16:e,Ht===null)var r=!1;else{if(e=Ht,Ht=null,Ui=0,$&6)throw Error(A(331));var o=$;for($|=4,M=e.current;M!==null;){var i=M,s=i.child;if(M.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lfe()-gu?Tn(e,0):mu|=n),je(e,t)}function Lh(e,t){t===0&&(e.mode&1?(t=Bo,Bo<<=1,!(Bo&130023424)&&(Bo=4194304)):t=1);var n=Me();e=Nt(e,t),e!==null&&(Eo(e,t,n),je(e,n))}function v0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Lh(e,n)}function y0(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(A(314))}r!==null&&r.delete(t),Lh(e,n)}var Nh;Nh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ve.current)_e=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return _e=!1,i0(e,t,n);_e=!!(e.flags&131072)}else _e=!1,te&&t.flags&1048576&&_p(t,Di,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;hi(e,t),e=t.pendingProps;var o=fr(t,Ee.current);ar(t,n),o=uu(null,t,r,e,o,n);var i=cu();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ie(r)?(i=!0,Ni(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,ou(t),o.updater=us,t.stateNode=o,o._reactInternals=t,Ga(t,r,e,n),t=Qa(null,t,r,!0,i,n)):(t.tag=0,te&&i&&Zl(t),Re(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(hi(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=x0(r),e=st(r,e),o){case 0:t=Ya(null,t,r,e,n);break e;case 1:t=Gc(null,t,r,e,n);break e;case 11:t=Hc(null,t,r,e,n);break e;case 14:t=Wc(null,t,r,st(r.type,e),n);break e}throw Error(A(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:st(r,o),Ya(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:st(r,o),Gc(e,t,r,o,n);case 3:e:{if(hh(t),e===null)throw Error(A(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Bp(e,t),Vi(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=mr(Error(A(423)),t),t=Kc(e,t,r,n,o);break e}else if(r!==o){o=mr(Error(A(424)),t),t=Kc(e,t,r,n,o);break e}else for(He=Yt(t.stateNode.containerInfo.firstChild),We=t,te=!0,lt=null,n=Fp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(dr(),r===o){t=Ot(e,t,n);break e}Re(e,t,r,n)}t=t.child}return t;case 5:return Up(t),e===null&&$a(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,ja(r,o)?s=null:i!==null&&ja(r,i)&&(t.flags|=32),ph(e,t),Re(e,t,s,n),t.child;case 6:return e===null&&$a(t),null;case 13:return mh(e,t,n);case 4:return iu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=pr(t,null,r,n):Re(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:st(r,o),Hc(e,t,r,o,n);case 7:return Re(e,t,t.pendingProps,n),t.child;case 8:return Re(e,t,t.pendingProps.children,n),t.child;case 12:return Re(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,K(bi,r._currentValue),r._currentValue=s,i!==null)if(dt(i.value,s)){if(i.children===o.children&&!Ve.current){t=Ot(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=kt(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Ha(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(A(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Ha(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Re(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,ar(t,n),o=nt(o),r=r(o),t.flags|=1,Re(e,t,r,n),t.child;case 14:return r=t.type,o=st(r,t.pendingProps),o=st(r.type,o),Wc(e,t,r,o,n);case 15:return fh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:st(r,o),hi(e,t),t.tag=1,Ie(r)?(e=!0,Ni(t)):e=!1,ar(t,n),lh(t,r,o),Ga(t,r,o,n),Qa(null,t,r,!0,e,n);case 19:return gh(e,t,n);case 22:return dh(e,t,n)}throw Error(A(156,t.tag))};function Oh(e,t){return ip(e,t)}function w0(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function et(e,t,n,r){return new w0(e,t,n,r)}function xu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function x0(e){if(typeof e=="function")return xu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Fl)return 11;if(e===zl)return 14}return 2}function qt(e,t){var n=e.alternate;return n===null?(n=et(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function vi(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")xu(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Un:return Cn(n.children,o,i,t);case jl:s=8,o|=8;break;case ga:return e=et(12,n,t,o|2),e.elementType=ga,e.lanes=i,e;case va:return e=et(13,n,t,o),e.elementType=va,e.lanes=i,e;case ya:return e=et(19,n,t,o),e.elementType=ya,e.lanes=i,e;case Ud:return ds(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case zd:s=10;break e;case Bd:s=9;break e;case Fl:s=11;break e;case zl:s=14;break e;case jt:s=16,r=null;break e}throw Error(A(130,e==null?e:typeof e,""))}return t=et(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Cn(e,t,n,r){return e=et(7,e,r,t),e.lanes=n,e}function ds(e,t,n,r){return e=et(22,e,r,t),e.elementType=Ud,e.lanes=n,e.stateNode={isHidden:!1},e}function Zs(e,t,n){return e=et(6,e,null,t),e.lanes=n,e}function qs(e,t,n){return t=et(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function S0(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Os(0),this.expirationTimes=Os(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Os(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Su(e,t,n,r,o,i,s,a,l){return e=new S0(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=et(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ou(i),e}function T0(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Vh)}catch(e){console.error(e)}}Vh(),Vd.exports=Ye;var vs=Vd.exports;const A0=wr(vs);var sf=vs;ha.createRoot=sf.createRoot,ha.hydrateRoot=sf.hydrateRoot;var Ih={exports:{}},R0="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",M0=R0,L0=M0;function jh(){}function Fh(){}Fh.resetWarningCache=jh;var N0=function(){function e(r,o,i,s,a,l){if(l!==L0){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Fh,resetWarningCache:jh};return n.PropTypes=n,n};Ih.exports=N0();var O0=Ih.exports;const J=wr(O0);function D0(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var zh=S,b0=D0(zh);function af(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _0(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var V0=!!(typeof window<"u"&&window.document&&window.document.createElement);function I0(e,t,n){if(typeof e!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof t!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof n<"u"&&typeof n!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function r(o){return o.displayName||o.name||"Component"}return function(i){if(typeof i!="function")throw new Error("Expected WrappedComponent to be a React component.");var s=[],a;function l(){a=e(s.map(function(c){return c.props})),u.canUseDOM?t(a):n&&(a=n(a))}var u=function(c){_0(f,c);function f(){return c.apply(this,arguments)||this}f.peek=function(){return a},f.rewind=function(){if(f.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var y=a;return a=void 0,s=[],y};var d=f.prototype;return d.UNSAFE_componentWillMount=function(){s.push(this),l()},d.componentDidUpdate=function(){l()},d.componentWillUnmount=function(){var y=s.indexOf(this);s.splice(y,1),l()},d.render=function(){return b0.createElement(i,this.props)},f}(zh.PureComponent);return af(u,"displayName","SideEffect("+r(i)+")"),af(u,"canUseDOM",V0),u}}var j0=I0;const F0=wr(j0);var z0=typeof Element<"u",B0=typeof Map=="function",U0=typeof Set=="function",$0=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function yi(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!yi(e[r],t[r]))return!1;return!0}var i;if(B0&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!yi(r.value[1],t.get(r.value[0])))return!1;return!0}if(U0&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if($0&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(z0&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!yi(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var H0=function(t,n){try{return yi(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const W0=wr(H0);/* object-assign (c) Sindre Sorhus @license MIT */var lf=Object.getOwnPropertySymbols,G0=Object.prototype.hasOwnProperty,K0=Object.prototype.propertyIsEnumerable;function Y0(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Q0(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(i){return t[i]});if(r.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(i){o[i]=i}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var X0=Q0()?Object.assign:function(e,t){for(var n,r=Y0(e),o,i=1;i=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},o1=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e},al=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return n===!1?String(t):String(t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},i1=function(t){var n=ur(t,j.TITLE),r=ur(t,wo.TITLE_TEMPLATE);if(r&&n)return r.replace(/%s/g,function(){return Array.isArray(n)?n.join(""):n});var o=ur(t,wo.DEFAULT_TITLE);return n||o||void 0},s1=function(t){return ur(t,wo.ON_CHANGE_CLIENT_STATE)||function(){}},Js=function(t,n){return n.filter(function(r){return typeof r[t]<"u"}).map(function(r){return r[t]}).reduce(function(r,o){return De({},r,o)},{})},a1=function(t,n){return n.filter(function(r){return typeof r[j.BASE]<"u"}).map(function(r){return r[j.BASE]}).reverse().reduce(function(r,o){if(!r.length)for(var i=Object.keys(o),s=0;s=0;r--){var o=t[r];if(o.hasOwnProperty(n))return o[n]}return null},l1=function(t){return{baseTag:a1([ee.HREF,ee.TARGET],t),bodyAttributes:Js(Pn.BODY,t),defer:ur(t,wo.DEFER),encode:ur(t,wo.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Js(Pn.HTML,t),linkTags:Nr(j.LINK,[ee.REL,ee.HREF],t),metaTags:Nr(j.META,[ee.NAME,ee.CHARSET,ee.HTTPEQUIV,ee.PROPERTY,ee.ITEM_PROP],t),noscriptTags:Nr(j.NOSCRIPT,[ee.INNER_HTML],t),onChangeClientState:s1(t),scriptTags:Nr(j.SCRIPT,[ee.SRC,ee.INNER_HTML],t),styleTags:Nr(j.STYLE,[ee.CSS_TEXT],t),title:i1(t),titleAttributes:Js(Pn.TITLE,t)}},ll=function(){var e=Date.now();return function(t){var n=Date.now();n-e>16?(e=n,t(n)):setTimeout(function(){ll(t)},0)}}(),cf=function(t){return clearTimeout(t)},u1=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||ll:global.requestAnimationFrame||ll,c1=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||cf:global.cancelAnimationFrame||cf,f1=function(t){return console&&typeof console.warn=="function"&&console.warn(t)},Or=null,d1=function(t){Or&&c1(Or),t.defer?Or=u1(function(){ff(t,function(){Or=null})}):(ff(t),Or=null)},ff=function(t,n){var r=t.baseTag,o=t.bodyAttributes,i=t.htmlAttributes,s=t.linkTags,a=t.metaTags,l=t.noscriptTags,u=t.onChangeClientState,c=t.scriptTags,f=t.styleTags,d=t.title,h=t.titleAttributes;ul(j.BODY,o),ul(j.HTML,i),p1(d,h);var y={baseTag:zn(j.BASE,r),linkTags:zn(j.LINK,s),metaTags:zn(j.META,a),noscriptTags:zn(j.NOSCRIPT,l),scriptTags:zn(j.SCRIPT,c),styleTags:zn(j.STYLE,f)},v={},x={};Object.keys(y).forEach(function(g){var p=y[g],m=p.newTags,w=p.oldTags;m.length&&(v[g]=m),w.length&&(x[g]=y[g].oldTags)}),n&&n(),u(t,v,x)},Bh=function(t){return Array.isArray(t)?t.join(""):t},p1=function(t,n){typeof t<"u"&&document.title!==t&&(document.title=Bh(t)),ul(j.TITLE,n)},ul=function(t,n){var r=document.getElementsByTagName(t)[0];if(r){for(var o=r.getAttribute(ut),i=o?o.split(","):[],s=[].concat(i),a=Object.keys(n),l=0;l=0;d--)r.removeAttribute(s[d]);i.length===s.length?r.removeAttribute(ut):r.getAttribute(ut)!==a.join(",")&&r.setAttribute(ut,a.join(","))}},zn=function(t,n){var r=document.head||document.querySelector(j.HEAD),o=r.querySelectorAll(t+"["+ut+"]"),i=Array.prototype.slice.call(o),s=[],a=void 0;return n&&n.length&&n.forEach(function(l){var u=document.createElement(t);for(var c in l)if(l.hasOwnProperty(c))if(c===ee.INNER_HTML)u.innerHTML=l.innerHTML;else if(c===ee.CSS_TEXT)u.styleSheet?u.styleSheet.cssText=l.cssText:u.appendChild(document.createTextNode(l.cssText));else{var f=typeof l[c]>"u"?"":l[c];u.setAttribute(c,f)}u.setAttribute(ut,"true"),i.some(function(d,h){return a=h,u.isEqualNode(d)})?i.splice(a,1):s.push(u)}),i.forEach(function(l){return l.parentNode.removeChild(l)}),s.forEach(function(l){return r.appendChild(l)}),{oldTags:i,newTags:s}},Uh=function(t){return Object.keys(t).reduce(function(n,r){var o=typeof t[r]<"u"?r+'="'+t[r]+'"':""+r;return n?n+" "+o:o},"")},h1=function(t,n,r,o){var i=Uh(r),s=Bh(n);return i?"<"+t+" "+ut+'="true" '+i+">"+al(s,o)+"":"<"+t+" "+ut+'="true">'+al(s,o)+""},m1=function(t,n,r){return n.reduce(function(o,i){var s=Object.keys(i).filter(function(u){return!(u===ee.INNER_HTML||u===ee.CSS_TEXT)}).reduce(function(u,c){var f=typeof i[c]>"u"?c:c+'="'+al(i[c],r)+'"';return u?u+" "+f:f},""),a=i.innerHTML||i.cssText||"",l=J0.indexOf(t)===-1;return o+"<"+t+" "+ut+'="true" '+s+(l?"/>":">"+a+"")},"")},$h=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,o){return r[Wi[o]||o]=t[o],r},n)},g1=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,o){return r[q0[o]||o]=t[o],r},n)},v1=function(t,n,r){var o,i=(o={key:n},o[ut]=!0,o),s=$h(r,i);return[le.createElement(j.TITLE,s,n)]},y1=function(t,n){return n.map(function(r,o){var i,s=(i={key:o},i[ut]=!0,i);return Object.keys(r).forEach(function(a){var l=Wi[a]||a;if(l===ee.INNER_HTML||l===ee.CSS_TEXT){var u=r.innerHTML||r.cssText;s.dangerouslySetInnerHTML={__html:u}}else s[l]=r[a]}),le.createElement(t,s)})},xt=function(t,n,r){switch(t){case j.TITLE:return{toComponent:function(){return v1(t,n.title,n.titleAttributes)},toString:function(){return h1(t,n.title,n.titleAttributes,r)}};case Pn.BODY:case Pn.HTML:return{toComponent:function(){return $h(n)},toString:function(){return Uh(n)}};default:return{toComponent:function(){return y1(t,n)},toString:function(){return m1(t,n,r)}}}},Hh=function(t){var n=t.baseTag,r=t.bodyAttributes,o=t.encode,i=t.htmlAttributes,s=t.linkTags,a=t.metaTags,l=t.noscriptTags,u=t.scriptTags,c=t.styleTags,f=t.title,d=f===void 0?"":f,h=t.titleAttributes;return{base:xt(j.BASE,n,o),bodyAttributes:xt(Pn.BODY,r,o),htmlAttributes:xt(Pn.HTML,i,o),link:xt(j.LINK,s,o),meta:xt(j.META,a,o),noscript:xt(j.NOSCRIPT,l,o),script:xt(j.SCRIPT,u,o),style:xt(j.STYLE,c,o),title:xt(j.TITLE,{title:d,titleAttributes:h},o)}},w1=function(t){var n,r;return r=n=function(o){r1(i,o);function i(){return t1(this,i),o1(this,o.apply(this,arguments))}return i.prototype.shouldComponentUpdate=function(a){return!W0(this.props,a)},i.prototype.mapNestedChildrenToProps=function(a,l){if(!l)return null;switch(a.type){case j.SCRIPT:case j.NOSCRIPT:return{innerHTML:l};case j.STYLE:return{cssText:l}}throw new Error("<"+a.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},i.prototype.flattenArrayTypeChildren=function(a){var l,u=a.child,c=a.arrayTypeChildren,f=a.newChildProps,d=a.nestedChildren;return De({},c,(l={},l[u.type]=[].concat(c[u.type]||[],[De({},f,this.mapNestedChildrenToProps(u,d))]),l))},i.prototype.mapObjectTypeChildren=function(a){var l,u,c=a.child,f=a.newProps,d=a.newChildProps,h=a.nestedChildren;switch(c.type){case j.TITLE:return De({},f,(l={},l[c.type]=h,l.titleAttributes=De({},d),l));case j.BODY:return De({},f,{bodyAttributes:De({},d)});case j.HTML:return De({},f,{htmlAttributes:De({},d)})}return De({},f,(u={},u[c.type]=De({},d),u))},i.prototype.mapArrayTypeChildrenToProps=function(a,l){var u=De({},l);return Object.keys(a).forEach(function(c){var f;u=De({},u,(f={},f[c]=a[c],f))}),u},i.prototype.warnOnInvalidChildren=function(a,l){return!0},i.prototype.mapChildrenToProps=function(a,l){var u=this,c={};return le.Children.forEach(a,function(f){if(!(!f||!f.props)){var d=f.props,h=d.children,y=uf(d,["children"]),v=g1(y);switch(u.warnOnInvalidChildren(f,h),f.type){case j.LINK:case j.META:case j.NOSCRIPT:case j.SCRIPT:case j.STYLE:c=u.flattenArrayTypeChildren({child:f,arrayTypeChildren:c,newChildProps:v,nestedChildren:h});break;default:l=u.mapObjectTypeChildren({child:f,newProps:l,newChildProps:v,nestedChildren:h});break}}}),l=this.mapArrayTypeChildrenToProps(c,l),l},i.prototype.render=function(){var a=this.props,l=a.children,u=uf(a,["children"]),c=De({},u);return l&&(c=this.mapChildrenToProps(l,c)),le.createElement(t,c)},n1(i,null,[{key:"canUseDOM",set:function(a){t.canUseDOM=a}}]),i}(le.Component),n.propTypes={base:J.object,bodyAttributes:J.object,children:J.oneOfType([J.arrayOf(J.node),J.node]),defaultTitle:J.string,defer:J.bool,encodeSpecialCharacters:J.bool,htmlAttributes:J.object,link:J.arrayOf(J.object),meta:J.arrayOf(J.object),noscript:J.arrayOf(J.object),onChangeClientState:J.func,script:J.arrayOf(J.object),style:J.arrayOf(J.object),title:J.string,titleAttributes:J.object,titleTemplate:J.string},n.defaultProps={defer:!0,encodeSpecialCharacters:!0},n.peek=t.peek,n.rewind=function(){var o=t.rewind();return o||(o=Hh({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),o},r},x1=function(){return null},S1=F0(l1,d1,Hh)(x1),cl=w1(S1);cl.renderStatic=cl.rewind;const Wh=S.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),ys=S.createContext({}),Eu=S.createContext(null),ws=typeof document<"u",T1=ws?S.useLayoutEffect:S.useEffect,Gh=S.createContext({strict:!1}),ku=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),C1="framerAppearId",Kh="data-"+ku(C1);function P1(e,t,n,r){const{visualElement:o}=S.useContext(ys),i=S.useContext(Gh),s=S.useContext(Eu),a=S.useContext(Wh).reducedMotion,l=S.useRef();r=r||i.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:o,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));const u=l.current;S.useInsertionEffect(()=>{u&&u.update(n,s)});const c=S.useRef(!!(n[Kh]&&!window.HandoffComplete));return T1(()=>{u&&(u.render(),c.current&&u.animationState&&u.animationState.animateChanges())}),S.useEffect(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),c.current&&(c.current=!1,window.HandoffComplete=!0))}),u}function Jn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function E1(e,t,n){return S.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Jn(n)&&(n.current=r))},[t])}function xo(e){return typeof e=="string"||Array.isArray(e)}function xs(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Au=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ru=["initial",...Au];function Ss(e){return xs(e.animate)||Ru.some(t=>xo(e[t]))}function Yh(e){return!!(Ss(e)||e.variants)}function k1(e,t){if(Ss(e)){const{initial:n,animate:r}=e;return{initial:n===!1||xo(n)?n:void 0,animate:xo(r)?r:void 0}}return e.inherit!==!1?t:{}}function A1(e){const{initial:t,animate:n}=k1(e,S.useContext(ys));return S.useMemo(()=>({initial:t,animate:n}),[df(t),df(n)])}function df(e){return Array.isArray(e)?e.join(" "):e}const pf={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},So={};for(const e in pf)So[e]={isEnabled:t=>pf[e].some(n=>!!t[n])};function R1(e){for(const t in e)So[t]={...So[t],...e[t]}}const Qh=S.createContext({}),Xh=S.createContext({}),M1=Symbol.for("motionComponentSymbol");function L1({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&R1(e);function i(a,l){let u;const c={...S.useContext(Wh),...a,layoutId:N1(a)},{isStatic:f}=c,d=A1(a),h=r(a,f);if(!f&&ws){d.visualElement=P1(o,h,c,t);const y=S.useContext(Xh),v=S.useContext(Gh).strict;d.visualElement&&(u=d.visualElement.loadFeatures(c,v,e,y))}return S.createElement(ys.Provider,{value:d},u&&d.visualElement?S.createElement(u,{visualElement:d.visualElement,...c}):null,n(o,a,E1(h,d.visualElement,l),h,f,d.visualElement))}const s=S.forwardRef(i);return s[M1]=o,s}function N1({layoutId:e}){const t=S.useContext(Qh).id;return t&&e!==void 0?t+"-"+e:e}function O1(e){function t(r,o={}){return L1(e(r,o))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}const D1=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Mu(e){return typeof e!="string"||e.includes("-")?!1:!!(D1.indexOf(e)>-1||/[A-Z]/.test(e))}const Gi={};function b1(e){Object.assign(Gi,e)}const Mo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],bn=new Set(Mo);function Zh(e,{layout:t,layoutId:n}){return bn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Gi[e]||e==="opacity")}const Fe=e=>!!(e&&e.getVelocity),_1={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},V1=Mo.length;function I1(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let s=0;st=>typeof t=="string"&&t.startsWith(e),Jh=qh("--"),fl=qh("var(--"),j1=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,F1=(e,t)=>t&&typeof e=="number"?t.transform(e):e,rn=(e,t,n)=>Math.min(Math.max(n,e),t),_n={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Zr={..._n,transform:e=>rn(0,1,e)},Jo={..._n,default:1},qr=e=>Math.round(e*1e5)/1e5,Ts=/(-)?([\d]*\.?[\d])+/g,em=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,z1=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Lo(e){return typeof e=="string"}const No=e=>({test:t=>Lo(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),It=No("deg"),yt=No("%"),V=No("px"),B1=No("vh"),U1=No("vw"),hf={...yt,parse:e=>yt.parse(e)/100,transform:e=>yt.transform(e*100)},mf={..._n,transform:Math.round},tm={borderWidth:V,borderTopWidth:V,borderRightWidth:V,borderBottomWidth:V,borderLeftWidth:V,borderRadius:V,radius:V,borderTopLeftRadius:V,borderTopRightRadius:V,borderBottomRightRadius:V,borderBottomLeftRadius:V,width:V,maxWidth:V,height:V,maxHeight:V,size:V,top:V,right:V,bottom:V,left:V,padding:V,paddingTop:V,paddingRight:V,paddingBottom:V,paddingLeft:V,margin:V,marginTop:V,marginRight:V,marginBottom:V,marginLeft:V,rotate:It,rotateX:It,rotateY:It,rotateZ:It,scale:Jo,scaleX:Jo,scaleY:Jo,scaleZ:Jo,skew:It,skewX:It,skewY:It,distance:V,translateX:V,translateY:V,translateZ:V,x:V,y:V,z:V,perspective:V,transformPerspective:V,opacity:Zr,originX:hf,originY:hf,originZ:V,zIndex:mf,fillOpacity:Zr,strokeOpacity:Zr,numOctaves:mf};function Lu(e,t,n,r){const{style:o,vars:i,transform:s,transformOrigin:a}=e;let l=!1,u=!1,c=!0;for(const f in t){const d=t[f];if(Jh(f)){i[f]=d;continue}const h=tm[f],y=F1(d,h);if(bn.has(f)){if(l=!0,s[f]=y,!c)continue;d!==(h.default||0)&&(c=!1)}else f.startsWith("origin")?(u=!0,a[f]=y):o[f]=y}if(t.transform||(l||r?o.transform=I1(e.transform,n,c,r):o.transform&&(o.transform="none")),u){const{originX:f="50%",originY:d="50%",originZ:h=0}=a;o.transformOrigin=`${f} ${d} ${h}`}}const Nu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function nm(e,t,n){for(const r in t)!Fe(t[r])&&!Zh(r,n)&&(e[r]=t[r])}function $1({transformTemplate:e},t,n){return S.useMemo(()=>{const r=Nu();return Lu(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function H1(e,t,n){const r=e.style||{},o={};return nm(o,r,e),Object.assign(o,$1(e,t,n)),e.transformValues?e.transformValues(o):o}function W1(e,t,n){const r={},o=H1(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const G1=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Ki(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||G1.has(e)}let rm=e=>!Ki(e);function K1(e){e&&(rm=t=>t.startsWith("on")?!Ki(t):e(t))}try{K1(require("@emotion/is-prop-valid").default)}catch{}function Y1(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(rm(o)||n===!0&&Ki(o)||!t&&!Ki(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function gf(e,t,n){return typeof e=="string"?e:V.transform(t+n*e)}function Q1(e,t,n){const r=gf(t,e.x,e.width),o=gf(n,e.y,e.height);return`${r} ${o}`}const X1={offset:"stroke-dashoffset",array:"stroke-dasharray"},Z1={offset:"strokeDashoffset",array:"strokeDasharray"};function q1(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?X1:Z1;e[i.offset]=V.transform(-r);const s=V.transform(t),a=V.transform(n);e[i.array]=`${s} ${a}`}function Ou(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,f,d){if(Lu(e,u,c,d),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:y,dimensions:v}=e;h.transform&&(v&&(y.transform=h.transform),delete h.transform),v&&(o!==void 0||i!==void 0||y.transform)&&(y.transformOrigin=Q1(v,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),s!==void 0&&q1(h,s,a,l,!1)}const om=()=>({...Nu(),attrs:{}}),Du=e=>typeof e=="string"&&e.toLowerCase()==="svg";function J1(e,t,n,r){const o=S.useMemo(()=>{const i=om();return Ou(i,t,{enableHardwareAcceleration:!1},Du(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};nm(i,e.style,e),o.style={...i,...o.style}}return o}function ew(e=!1){return(n,r,o,{latestValues:i},s)=>{const l=(Mu(n)?J1:W1)(r,i,s,n),c={...Y1(r,typeof n=="string",e),...l,ref:o},{children:f}=r,d=S.useMemo(()=>Fe(f)?f.get():f,[f]);return S.createElement(n,{...c,children:d})}}function im(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const sm=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function am(e,t,n,r){im(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(sm.has(o)?o:ku(o),t.attrs[o])}function bu(e,t){const{style:n}=e,r={};for(const o in n)(Fe(n[o])||t.style&&Fe(t.style[o])||Zh(o,e))&&(r[o]=n[o]);return r}function lm(e,t){const n=bu(e,t);for(const r in e)if(Fe(e[r])||Fe(t[r])){const o=Mo.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[o]=e[r]}return n}function _u(e,t,n,r={},o={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),t}function tw(e){const t=S.useRef(null);return t.current===null&&(t.current=e()),t.current}const Yi=e=>Array.isArray(e),nw=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),rw=e=>Yi(e)?e[e.length-1]||0:e;function wi(e){const t=Fe(e)?e.get():e;return nw(t)?t.toValue():t}function ow({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const s={latestValues:iw(r,o,i,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const um=e=>(t,n)=>{const r=S.useContext(ys),o=S.useContext(Eu),i=()=>ow(e,t,r,o);return n?i():tw(i)};function iw(e,t,n,r){const o={},i=r(e,{});for(const d in i)o[d]=wi(i[d]);let{initial:s,animate:a}=e;const l=Ss(e),u=Yh(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const f=c?a:s;return f&&typeof f!="boolean"&&!xs(f)&&(Array.isArray(f)?f:[f]).forEach(h=>{const y=_u(e,h);if(!y)return;const{transitionEnd:v,transition:x,...g}=y;for(const p in g){let m=g[p];if(Array.isArray(m)){const w=c?m.length-1:0;m=m[w]}m!==null&&(o[p]=m)}for(const p in v)o[p]=v[p]}),o}const ue=e=>e;class vf{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function sw(e){let t=new vf,n=new vf,r=0,o=!1,i=!1;const s=new WeakSet,a={schedule:(l,u=!1,c=!1)=>{const f=c&&o,d=f?t:n;return u&&s.add(l),d.add(l)&&f&&o&&(r=t.order.length),l},cancel:l=>{n.remove(l),s.delete(l)},process:l=>{if(o){i=!0;return}if(o=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u(f[d]=sw(()=>n=!0),f),{}),s=f=>i[f].process(o),a=()=>{const f=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(f-o.timestamp,aw),1),o.timestamp=f,o.isProcessing=!0,ei.forEach(s),o.isProcessing=!1,n&&t&&(r=!1,e(a))},l=()=>{n=!0,r=!0,o.isProcessing||e(a)};return{schedule:ei.reduce((f,d)=>{const h=i[d];return f[d]=(y,v=!1,x=!1)=>(n||l(),h.schedule(y,v,x)),f},{}),cancel:f=>ei.forEach(d=>i[d].cancel(f)),state:o,steps:i}}const{schedule:Z,cancel:Dt,state:Ce,steps:ea}=lw(typeof requestAnimationFrame<"u"?requestAnimationFrame:ue,!0),uw={useVisualState:um({scrapeMotionValuesFromProps:lm,createRenderState:om,onMount:(e,t,{renderState:n,latestValues:r})=>{Z.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Z.render(()=>{Ou(n,r,{enableHardwareAcceleration:!1},Du(t.tagName),e.transformTemplate),am(t,n)})}})},cw={useVisualState:um({scrapeMotionValuesFromProps:bu,createRenderState:Nu})};function fw(e,{forwardMotionProps:t=!1},n,r){return{...Mu(e)?uw:cw,preloadedFeatures:n,useRender:ew(t),createVisualElement:r,Component:e}}function Et(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const cm=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Cs(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const dw=e=>t=>cm(t)&&e(t,Cs(t));function At(e,t,n,r){return Et(e,t,dw(n),r)}const pw=(e,t)=>n=>t(e(n)),Jt=(...e)=>e.reduce(pw);function fm(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const yf=fm("dragHorizontal"),wf=fm("dragVertical");function dm(e){let t=!1;if(e==="y")t=wf();else if(e==="x")t=yf();else{const n=yf(),r=wf();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function pm(){const e=dm(!0);return e?(e(),!1):!0}class un{constructor(t){this.isMounted=!1,this.node=t}update(){}}function xf(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),o=(i,s)=>{if(i.pointerType==="touch"||pm())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t),a[r]&&Z.update(()=>a[r](i,s))};return At(e.current,n,o,{passive:!e.getProps()[r]})}class hw extends un{mount(){this.unmount=Jt(xf(this.node,!0),xf(this.node,!1))}unmount(){}}class mw extends un{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Jt(Et(this.node.current,"focus",()=>this.onFocus()),Et(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const hm=(e,t)=>t?e===t?!0:hm(e,t.parentElement):!1;function ta(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Cs(n))}class gw extends un{constructor(){super(...arguments),this.removeStartListeners=ue,this.removeEndListeners=ue,this.removeAccessibleListeners=ue,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),i=At(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:f}=this.node.getProps();Z.update(()=>{!f&&!hm(this.node.current,a.target)?c&&c(a,l):u&&u(a,l)})},{passive:!(r.onTap||r.onPointerUp)}),s=At(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Jt(i,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||ta("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&Z.update(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=Et(this.node.current,"keyup",s),ta("down",(a,l)=>{this.startPress(a,l)})},n=Et(this.node.current,"keydown",t),r=()=>{this.isPressing&&ta("cancel",(i,s)=>this.cancelPress(i,s))},o=Et(this.node.current,"blur",r);this.removeAccessibleListeners=Jt(n,o)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Z.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!pm()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Z.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=At(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Et(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Jt(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const dl=new WeakMap,na=new WeakMap,vw=e=>{const t=dl.get(e.target);t&&t(e)},yw=e=>{e.forEach(vw)};function ww({root:e,...t}){const n=e||document;na.has(n)||na.set(n,{});const r=na.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(yw,{root:e,...t})),r[o]}function xw(e,t,n){const r=ww(t);return dl.set(e,n),r.observe(e),()=>{dl.delete(e),r.unobserve(e)}}const Sw={some:0,all:1};class Tw extends un{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:Sw[o]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),d=u?c:f;d&&d(l)};return xw(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Cw(t,n))&&this.startObserver()}unmount(){}}function Cw({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Pw={inView:{Feature:Tw},tap:{Feature:gw},focus:{Feature:mw},hover:{Feature:hw}};function mm(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rt[r]=n.get()),t}function kw(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Ps(e,t,n){const r=e.getProps();return _u(r,t,n!==void 0?n:r.custom,Ew(e),kw(e))}let Aw=ue,Vu=ue;const en=e=>e*1e3,Rt=e=>e/1e3,Rw={current:!1},gm=e=>Array.isArray(e)&&typeof e[0]=="number";function vm(e){return!!(!e||typeof e=="string"&&ym[e]||gm(e)||Array.isArray(e)&&e.every(vm))}const Br=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ym={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Br([0,.65,.55,1]),circOut:Br([.55,0,1,.45]),backIn:Br([.31,.01,.66,-.59]),backOut:Br([.33,1.53,.69,.99])};function wm(e){if(e)return gm(e)?Br(e):Array.isArray(e)?e.map(wm):ym[e]}function Mw(e,t,n,{delay:r=0,duration:o,repeat:i=0,repeatType:s="loop",ease:a,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=wm(a);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}function Lw(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const xm=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Nw=1e-7,Ow=12;function Dw(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=xm(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>Nw&&++aDw(i,0,1,e,n);return i=>i===0||i===1?i:xm(o(i),t,r)}const bw=Oo(.42,0,1,1),_w=Oo(0,0,.58,1),Sm=Oo(.42,0,.58,1),Vw=e=>Array.isArray(e)&&typeof e[0]!="number",Tm=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Cm=e=>t=>1-e(1-t),Iu=e=>1-Math.sin(Math.acos(e)),Pm=Cm(Iu),Iw=Tm(Iu),Em=Oo(.33,1.53,.69,.99),ju=Cm(Em),jw=Tm(ju),Fw=e=>(e*=2)<1?.5*ju(e):.5*(2-Math.pow(2,-10*(e-1))),zw={linear:ue,easeIn:bw,easeInOut:Sm,easeOut:_w,circIn:Iu,circInOut:Iw,circOut:Pm,backIn:ju,backInOut:jw,backOut:Em,anticipate:Fw},Sf=e=>{if(Array.isArray(e)){Vu(e.length===4);const[t,n,r,o]=e;return Oo(t,n,r,o)}else if(typeof e=="string")return zw[e];return e},Fu=(e,t)=>n=>!!(Lo(n)&&z1.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),km=(e,t,n)=>r=>{if(!Lo(r))return r;const[o,i,s,a]=r.match(Ts);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},Bw=e=>rn(0,255,e),ra={..._n,transform:e=>Math.round(Bw(e))},xn={test:Fu("rgb","red"),parse:km("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ra.transform(e)+", "+ra.transform(t)+", "+ra.transform(n)+", "+qr(Zr.transform(r))+")"};function Uw(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const pl={test:Fu("#"),parse:Uw,transform:xn.transform},er={test:Fu("hsl","hue"),parse:km("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+yt.transform(qr(t))+", "+yt.transform(qr(n))+", "+qr(Zr.transform(r))+")"},ke={test:e=>xn.test(e)||pl.test(e)||er.test(e),parse:e=>xn.test(e)?xn.parse(e):er.test(e)?er.parse(e):pl.parse(e),transform:e=>Lo(e)?e:e.hasOwnProperty("red")?xn.transform(e):er.transform(e)},oe=(e,t,n)=>-n*e+n*t+e;function oa(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function $w({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=oa(l,a,e+1/3),i=oa(l,a,e),s=oa(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}const ia=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},Hw=[pl,xn,er],Ww=e=>Hw.find(t=>t.test(e));function Tf(e){const t=Ww(e);let n=t.parse(e);return t===er&&(n=$w(n)),n}const Am=(e,t)=>{const n=Tf(e),r=Tf(t),o={...n};return i=>(o.red=ia(n.red,r.red,i),o.green=ia(n.green,r.green,i),o.blue=ia(n.blue,r.blue,i),o.alpha=oe(n.alpha,r.alpha,i),xn.transform(o))};function Gw(e){var t,n;return isNaN(e)&&Lo(e)&&(((t=e.match(Ts))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(em))===null||n===void 0?void 0:n.length)||0)>0}const Rm={regex:j1,countKey:"Vars",token:"${v}",parse:ue},Mm={regex:em,countKey:"Colors",token:"${c}",parse:ke.parse},Lm={regex:Ts,countKey:"Numbers",token:"${n}",parse:_n.parse};function sa(e,{regex:t,countKey:n,token:r,parse:o}){const i=e.tokenised.match(t);i&&(e["num"+n]=i.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...i.map(o)))}function Qi(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&sa(n,Rm),sa(n,Mm),sa(n,Lm),n}function Nm(e){return Qi(e).values}function Om(e){const{values:t,numColors:n,numVars:r,tokenised:o}=Qi(e),i=t.length;return s=>{let a=o;for(let l=0;ltypeof e=="number"?0:e;function Yw(e){const t=Nm(e);return Om(e)(t.map(Kw))}const on={test:Gw,parse:Nm,createTransformer:Om,getAnimatableNone:Yw},Dm=(e,t)=>n=>`${n>0?t:e}`;function bm(e,t){return typeof e=="number"?n=>oe(e,t,n):ke.test(e)?Am(e,t):e.startsWith("var(")?Dm(e,t):Vm(e,t)}const _m=(e,t)=>{const n=[...e],r=n.length,o=e.map((i,s)=>bm(i,t[s]));return i=>{for(let s=0;s{const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=bm(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}},Vm=(e,t)=>{const n=on.createTransformer(t),r=Qi(e),o=Qi(t);return r.numVars===o.numVars&&r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?Jt(_m(r.values,o.values),n):Dm(e,t)},To=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Cf=(e,t)=>n=>oe(e,t,n);function Xw(e){return typeof e=="number"?Cf:typeof e=="string"?ke.test(e)?Am:Vm:Array.isArray(e)?_m:typeof e=="object"?Qw:Cf}function Zw(e,t,n){const r=[],o=n||Xw(e[0]),i=e.length-1;for(let s=0;st[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=Zw(t,r,o),a=s.length,l=u=>{let c=0;if(a>1)for(;cl(rn(e[0],e[i-1],u)):l}function qw(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=To(0,t,r);e.push(oe(n,1,o))}}function Jw(e){const t=[0];return qw(t,e.length-1),t}function ex(e,t){return e.map(n=>n*t)}function tx(e,t){return e.map(()=>t||Sm).splice(0,e.length-1)}function Xi({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=Vw(r)?r.map(Sf):Sf(r),i={done:!1,value:t[0]},s=ex(n&&n.length===t.length?n:Jw(t),e),a=Im(s,t,{ease:Array.isArray(o)?o:tx(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}function jm(e,t){return t?e*(1e3/t):0}const nx=5;function Fm(e,t,n){const r=Math.max(t-nx,0);return jm(n-e(r),t-r)}const aa=.001,rx=.01,Pf=10,ox=.05,ix=1;function sx({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;Aw(e<=en(Pf));let s=1-t;s=rn(ox,ix,s),e=rn(rx,Pf,Rt(e)),s<1?(o=u=>{const c=u*s,f=c*e,d=c-n,h=hl(u,s),y=Math.exp(-f);return aa-d/h*y},i=u=>{const f=u*s*e,d=f*n+n,h=Math.pow(s,2)*Math.pow(u,2)*e,y=Math.exp(-f),v=hl(Math.pow(u,2),s);return(-o(u)+aa>0?-1:1)*((d-h)*y)/v}):(o=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-aa+c*f},i=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const a=5/e,l=lx(o,i,a);if(e=en(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const ax=12;function lx(e,t,n){let r=n;for(let o=1;oe[n]!==void 0)}function fx(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Ef(e,cx)&&Ef(e,ux)){const n=sx(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function zm({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],s={done:!1,value:o},{stiffness:a,damping:l,mass:u,duration:c,velocity:f,isResolvedFromDuration:d}=fx({...r,velocity:-Rt(r.velocity||0)}),h=f||0,y=l/(2*Math.sqrt(a*u)),v=i-o,x=Rt(Math.sqrt(a/u)),g=Math.abs(v)<5;n||(n=g?.01:2),t||(t=g?.005:.5);let p;if(y<1){const m=hl(x,y);p=w=>{const T=Math.exp(-y*x*w);return i-T*((h+y*x*v)/m*Math.sin(m*w)+v*Math.cos(m*w))}}else if(y===1)p=m=>i-Math.exp(-x*m)*(v+(h+x*v)*m);else{const m=x*Math.sqrt(y*y-1);p=w=>{const T=Math.exp(-y*x*w),P=Math.min(m*w,300);return i-T*((h+y*x*v)*Math.sinh(P)+m*v*Math.cosh(P))/m}}return{calculatedDuration:d&&c||null,next:m=>{const w=p(m);if(d)s.done=m>=c;else{let T=h;m!==0&&(y<1?T=Fm(p,m,w):T=0);const P=Math.abs(T)<=n,C=Math.abs(i-w)<=t;s.done=P&&C}return s.value=s.done?i:w,s}}}function kf({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const f=e[0],d={done:!1,value:f},h=k=>a!==void 0&&kl,y=k=>a===void 0?l:l===void 0||Math.abs(a-k)-v*Math.exp(-k/r),m=k=>g+p(k),w=k=>{const O=p(k),D=m(k);d.done=Math.abs(O)<=u,d.value=d.done?g:D};let T,P;const C=k=>{h(d.value)&&(T=k,P=zm({keyframes:[d.value,y(d.value)],velocity:Fm(m,k,d.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return C(0),{calculatedDuration:null,next:k=>{let O=!1;return!P&&T===void 0&&(O=!0,w(k),C(k)),T!==void 0&&k>T?P.next(k-T):(!O&&w(k),d)}}}const dx=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Z.update(t,!0),stop:()=>Dt(t),now:()=>Ce.isProcessing?Ce.timestamp:performance.now()}},Af=2e4;function Rf(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=Af?1/0:t}const px={decay:kf,inertia:kf,tween:Xi,keyframes:Xi,spring:zm};function Zi({autoplay:e=!0,delay:t=0,driver:n=dx,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:f,...d}){let h=1,y=!1,v,x;const g=()=>{x=new Promise(b=>{v=b})};g();let p;const m=px[o]||Xi;let w;m!==Xi&&typeof r[0]!="number"&&(w=Im([0,100],r,{clamp:!1}),r=[0,100]);const T=m({...d,keyframes:r});let P;a==="mirror"&&(P=m({...d,keyframes:[...r].reverse(),velocity:-(d.velocity||0)}));let C="idle",k=null,O=null,D=null;T.calculatedDuration===null&&i&&(T.calculatedDuration=Rf(T));const{calculatedDuration:H}=T;let _=1/0,ne=1/0;H!==null&&(_=H+s,ne=_*(i+1)-s);let L=0;const q=b=>{if(O===null)return;h>0&&(O=Math.min(O,b)),h<0&&(O=Math.min(b-ne/h,O)),k!==null?L=k:L=Math.round(b-O)*h;const U=L-t*(h>=0?1:-1),G=h>=0?U<0:U>ne;L=Math.max(U,0),C==="finished"&&k===null&&(L=ne);let ze=L,jn=T;if(i){const ks=Math.min(L,ne)/_;let _o=Math.floor(ks),fn=ks%1;!fn&&ks>=1&&(fn=1),fn===1&&_o--,_o=Math.min(_o,i+1),!!(_o%2)&&(a==="reverse"?(fn=1-fn,s&&(fn-=s/_)):a==="mirror"&&(jn=P)),ze=rn(0,1,fn)*_}const Be=G?{done:!1,value:r[0]}:jn.next(ze);w&&(Be.value=w(Be.value));let{done:cn}=Be;!G&&H!==null&&(cn=h>=0?L>=ne:L<=0);const Jg=k===null&&(C==="finished"||C==="running"&&cn);return f&&f(Be.value),Jg&&R(),Be},B=()=>{p&&p.stop(),p=void 0},ce=()=>{C="idle",B(),v(),g(),O=D=null},R=()=>{C="finished",c&&c(),B(),v()},N=()=>{if(y)return;p||(p=n(q));const b=p.now();l&&l(),k!==null?O=b-k:(!O||C==="finished")&&(O=b),C==="finished"&&g(),D=O,k=null,C="running",p.start()};e&&N();const I={then(b,U){return x.then(b,U)},get time(){return Rt(L)},set time(b){b=en(b),L=b,k!==null||!p||h===0?k=b:O=p.now()-b/h},get duration(){const b=T.calculatedDuration===null?Rf(T):T.calculatedDuration;return Rt(b)},get speed(){return h},set speed(b){b===h||!p||(h=b,I.time=Rt(L))},get state(){return C},play:N,pause:()=>{C="paused",k=L},stop:()=>{y=!0,C!=="idle"&&(C="idle",u&&u(),ce())},cancel:()=>{D!==null&&q(D),ce()},complete:()=>{C="finished"},sample:b=>(O=0,q(b))};return I}function hx(e){let t;return()=>(t===void 0&&(t=e()),t)}const mx=hx(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),gx=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),ti=10,vx=2e4,yx=(e,t)=>t.type==="spring"||e==="backgroundColor"||!vm(t.ease);function wx(e,t,{onUpdate:n,onComplete:r,...o}){if(!(mx()&&gx.has(t)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return!1;let s=!1,a,l,u=!1;const c=()=>{l=new Promise(m=>{a=m})};c();let{keyframes:f,duration:d=300,ease:h,times:y}=o;if(yx(t,o)){const m=Zi({...o,repeat:0,delay:0});let w={done:!1,value:f[0]};const T=[];let P=0;for(;!w.done&&P{u=!1,v.cancel()},g=()=>{u=!0,Z.update(x),a(),c()};return v.onfinish=()=>{u||(e.set(Lw(f,o)),r&&r(),g())},{then(m,w){return l.then(m,w)},attachTimeline(m){return v.timeline=m,v.onfinish=null,ue},get time(){return Rt(v.currentTime||0)},set time(m){v.currentTime=en(m)},get speed(){return v.playbackRate},set speed(m){v.playbackRate=m},get duration(){return Rt(d)},play:()=>{s||(v.play(),Dt(x))},pause:()=>v.pause(),stop:()=>{if(s=!0,v.playState==="idle")return;const{currentTime:m}=v;if(m){const w=Zi({...o,autoplay:!1});e.setWithVelocity(w.sample(m-ti).value,w.sample(m).value,ti)}g()},complete:()=>{u||v.finish()},cancel:g}}function xx({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:ue,pause:ue,stop:ue,then:i=>(i(),Promise.resolve()),cancel:ue,complete:ue});return t?Zi({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const Sx={type:"spring",stiffness:500,damping:25,restSpeed:10},Tx=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Cx={type:"keyframes",duration:.8},Px={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ex=(e,{keyframes:t})=>t.length>2?Cx:bn.has(e)?e.startsWith("scale")?Tx(t[1]):Sx:Px,ml=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(on.test(t)||t==="0")&&!t.startsWith("url(")),kx=new Set(["brightness","contrast","saturate","opacity"]);function Ax(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Ts)||[];if(!r)return e;const o=n.replace(r,"");let i=kx.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Rx=/([a-z-]*)\(.*?\)/g,gl={...on,getAnimatableNone:e=>{const t=e.match(Rx);return t?t.map(Ax).join(" "):e}},Mx={...tm,color:ke,backgroundColor:ke,outlineColor:ke,fill:ke,stroke:ke,borderColor:ke,borderTopColor:ke,borderRightColor:ke,borderBottomColor:ke,borderLeftColor:ke,filter:gl,WebkitFilter:gl},zu=e=>Mx[e];function Bm(e,t){let n=zu(e);return n!==gl&&(n=on),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Um=e=>/^0[^.\s]+$/.test(e);function Lx(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Um(e)}function Nx(e,t,n,r){const o=ml(t,n);let i;Array.isArray(n)?i=[...n]:i=[null,n];const s=r.from!==void 0?r.from:e.get();let a;const l=[];for(let u=0;uo=>{const i=Bu(r,e)||{},s=i.delay||r.delay||0;let{elapsed:a=0}=r;a=a-en(s);const l=Nx(t,e,n,i),u=l[0],c=l[l.length-1],f=ml(e,u),d=ml(e,c);let h={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-a,onUpdate:y=>{t.set(y),i.onUpdate&&i.onUpdate(y)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(Ox(i)||(h={...h,...Ex(e,h)}),h.duration&&(h.duration=en(h.duration)),h.repeatDelay&&(h.repeatDelay=en(h.repeatDelay)),!f||!d||Rw.current||i.type===!1||Dx.skipAnimations)return xx(h);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const y=wx(t,e,h);if(y)return y}return Zi(h)};function qi(e){return!!(Fe(e)&&e.add)}const $m=e=>/^\-?\d*\.?\d+$/.test(e);function $u(e,t){e.indexOf(t)===-1&&e.push(t)}function Hu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Wu{constructor(){this.subscriptions=[]}add(t){return $u(this.subscriptions,t),()=>Hu(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i!isNaN(parseFloat(e));class _x{constructor(t,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,o=!0)=>{this.prev=this.current,this.current=r;const{delta:i,timestamp:s}=Ce;this.lastUpdated!==s&&(this.timeDelta=i,this.lastUpdated=s,Z.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Z.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=bx(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Wu);const r=this.events[t].add(n);return t==="change"?()=>{r(),Z.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?jm(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function vr(e,t){return new _x(e,t)}const Hm=e=>t=>t.test(e),Vx={test:e=>e==="auto",parse:e=>e},Wm=[_n,V,yt,It,U1,B1,Vx],Dr=e=>Wm.find(Hm(e)),Ix=[...Wm,ke,on],jx=e=>Ix.find(Hm(e));function Fx(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,vr(n))}function zx(e,t){const n=Ps(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const s in i){const a=rw(i[s]);Fx(e,s,a)}}function Bx(e,t,n){var r,o;const i=Object.keys(t).filter(a=>!e.hasValue(a)),s=i.length;if(s)for(let a=0;al.remove(f))),u.push(x)}return s&&Promise.all(u).then(()=>{s&&zx(e,s)}),u}function vl(e,t,n={}){const r=Ps(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(Gm(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:f}=o;return Gx(e,t,u+l,c,f,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[l,u]=a==="beforeChildren"?[i,s]:[s,i];return l().then(()=>u())}else return Promise.all([i(),s(n.delay)])}function Gx(e,t,n=0,r=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*r,l=o===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(Kx).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(vl(u,t,{...i,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function Kx(e,t){return e.sortNodePosition(t)}function Yx(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>vl(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=vl(e,t,n);else{const o=typeof t=="function"?Ps(e,t,n.custom):t;r=Promise.all(Gm(e,o,n))}return r.then(()=>e.notify("AnimationComplete",t))}const Qx=[...Au].reverse(),Xx=Au.length;function Zx(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Yx(e,n,r)))}function qx(e){let t=Zx(e);const n=eS();let r=!0;const o=(l,u)=>{const c=Ps(e,u);if(c){const{transition:f,transitionEnd:d,...h}=c;l={...l,...h,...d}}return l};function i(l){t=l(e)}function s(l,u){const c=e.getProps(),f=e.getVariantContext(!0)||{},d=[],h=new Set;let y={},v=1/0;for(let g=0;gv&&T,D=!1;const H=Array.isArray(w)?w:[w];let _=H.reduce(o,{});P===!1&&(_={});const{prevResolvedValues:ne={}}=m,L={...ne,..._},q=B=>{O=!0,h.has(B)&&(D=!0,h.delete(B)),m.needsAnimating[B]=!0};for(const B in L){const ce=_[B],R=ne[B];if(y.hasOwnProperty(B))continue;let N=!1;Yi(ce)&&Yi(R)?N=!mm(ce,R):N=ce!==R,N?ce!==void 0?q(B):h.add(B):ce!==void 0&&h.has(B)?q(B):m.protectedKeys[B]=!0}m.prevProp=w,m.prevResolvedValues=_,m.isActive&&(y={...y,..._}),r&&e.blockInitialAnimation&&(O=!1),O&&(!C||D)&&d.push(...H.map(B=>({animation:B,options:{type:p,...l}})))}if(h.size){const g={};h.forEach(p=>{const m=e.getBaseTarget(p);m!==void 0&&(g[p]=m)}),d.push({animation:g})}let x=!!d.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,x?t(d):Promise.resolve()}function a(l,u,c){var f;if(n[l].isActive===u)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(h=>{var y;return(y=h.animationState)===null||y===void 0?void 0:y.setActive(l,u)}),n[l].isActive=u;const d=s(c,l);for(const h in n)n[h].protectedKeys={};return d}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n}}function Jx(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!mm(t,e):!1}function dn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function eS(){return{animate:dn(!0),whileInView:dn(),whileHover:dn(),whileTap:dn(),whileDrag:dn(),whileFocus:dn(),exit:dn()}}class tS extends un{constructor(t){super(t),t.animationState||(t.animationState=qx(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),xs(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let nS=0;class rS extends un{constructor(){super(...arguments),this.id=nS++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const i=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const oS={animation:{Feature:tS},exit:{Feature:rS}},Mf=(e,t)=>Math.abs(e-t);function iS(e,t){const n=Mf(e.x,t.x),r=Mf(e.y,t.y);return Math.sqrt(n**2+r**2)}class Km{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=ua(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,h=iS(f.offset,{x:0,y:0})>=3;if(!d&&!h)return;const{point:y}=f,{timestamp:v}=Ce;this.history.push({...y,timestamp:v});const{onStart:x,onMove:g}=this.handlers;d||(x&&x(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,f)},this.handlePointerMove=(f,d)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=la(d,this.transformPagePoint),Z.update(this.updatePoint,!0)},this.handlePointerUp=(f,d)=>{this.end();const{onEnd:h,onSessionEnd:y,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=ua(f.type==="pointercancel"?this.lastMoveEventInfo:la(d,this.transformPagePoint),this.history);this.startEvent&&h&&h(f,x),y&&y(f,x)},!cm(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const s=Cs(t),a=la(s,this.transformPagePoint),{point:l}=a,{timestamp:u}=Ce;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,ua(a,this.history)),this.removeListeners=Jt(At(this.contextWindow,"pointermove",this.handlePointerMove),At(this.contextWindow,"pointerup",this.handlePointerUp),At(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Dt(this.updatePoint)}}function la(e,t){return t?{point:t(e.point)}:e}function Lf(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ua({point:e},t){return{point:e,delta:Lf(e,Ym(t)),offset:Lf(e,sS(t)),velocity:aS(t,.1)}}function sS(e){return e[0]}function Ym(e){return e[e.length-1]}function aS(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Ym(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>en(t)));)n--;if(!r)return{x:0,y:0};const i=Rt(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Ke(e){return e.max-e.min}function yl(e,t=0,n=.01){return Math.abs(e-t)<=n}function Nf(e,t,n,r=.5){e.origin=r,e.originPoint=oe(t.min,t.max,e.origin),e.scale=Ke(n)/Ke(t),(yl(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=oe(n.min,n.max,e.origin)-e.originPoint,(yl(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Jr(e,t,n,r){Nf(e.x,t.x,n.x,r?r.originX:void 0),Nf(e.y,t.y,n.y,r?r.originY:void 0)}function Of(e,t,n){e.min=n.min+t.min,e.max=e.min+Ke(t)}function lS(e,t,n){Of(e.x,t.x,n.x),Of(e.y,t.y,n.y)}function Df(e,t,n){e.min=t.min-n.min,e.max=e.min+Ke(t)}function eo(e,t,n){Df(e.x,t.x,n.x),Df(e.y,t.y,n.y)}function uS(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?oe(n,e,r.max):Math.min(e,n)),e}function bf(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function cS(e,{top:t,left:n,bottom:r,right:o}){return{x:bf(e.x,n,o),y:bf(e.y,t,r)}}function _f(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=To(t.min,t.max-r,e.min):r>o&&(n=To(e.min,e.max-o,t.min)),rn(0,1,n)}function pS(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const wl=.35;function hS(e=wl){return e===!1?e=0:e===!0&&(e=wl),{x:Vf(e,"left","right"),y:Vf(e,"top","bottom")}}function Vf(e,t,n){return{min:If(e,t),max:If(e,n)}}function If(e,t){return typeof e=="number"?e:e[t]||0}const jf=()=>({translate:0,scale:1,origin:0,originPoint:0}),tr=()=>({x:jf(),y:jf()}),Ff=()=>({min:0,max:0}),de=()=>({x:Ff(),y:Ff()});function Ze(e){return[e("x"),e("y")]}function Qm({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function mS({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function gS(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function ca(e){return e===void 0||e===1}function xl({scale:e,scaleX:t,scaleY:n}){return!ca(e)||!ca(t)||!ca(n)}function mn(e){return xl(e)||Xm(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Xm(e){return zf(e.x)||zf(e.y)}function zf(e){return e&&e!=="0%"}function Ji(e,t,n){const r=e-n,o=t*r;return n+o}function Bf(e,t,n,r,o){return o!==void 0&&(e=Ji(e,o,r)),Ji(e,n,r)+t}function Sl(e,t=0,n=1,r,o){e.min=Bf(e.min,t,n,r,o),e.max=Bf(e.max,t,n,r,o)}function Zm(e,{x:t,y:n}){Sl(e.x,t.translate,t.scale,t.originPoint),Sl(e.y,n.translate,n.scale,n.originPoint)}function vS(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;a1.0000000000001||e<.999999999999?e:1}function zt(e,t){e.min=e.min+t,e.max=e.max+t}function $f(e,t,[n,r,o]){const i=t[o]!==void 0?t[o]:.5,s=oe(e.min,e.max,i);Sl(e,t[n],t[r],s,t.scale)}const yS=["x","scaleX","originX"],wS=["y","scaleY","originY"];function nr(e,t){$f(e.x,t,yS),$f(e.y,t,wS)}function qm(e,t){return Qm(gS(e.getBoundingClientRect(),t))}function xS(e,t,n){const r=qm(e,n),{scroll:o}=t;return o&&(zt(r.x,o.offset.x),zt(r.y,o.offset.y)),r}const Jm=({current:e})=>e?e.ownerDocument.defaultView:null,SS=new WeakMap;class TS{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=de(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=c=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Cs(c,"page").point)},i=(c,f)=>{const{drag:d,dragPropagation:h,onDragStart:y}=this.getProps();if(d&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=dm(d),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ze(x=>{let g=this.getAxisMotionValue(x).get()||0;if(yt.test(g)){const{projection:p}=this.visualElement;if(p&&p.layout){const m=p.layout.layoutBox[x];m&&(g=Ke(m)*(parseFloat(g)/100))}}this.originPoint[x]=g}),y&&Z.update(()=>y(c,f),!1,!0);const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},s=(c,f)=>{const{dragPropagation:d,dragDirectionLock:h,onDirectionLock:y,onDrag:v}=this.getProps();if(!d&&!this.openGlobalLock)return;const{offset:x}=f;if(h&&this.currentDirection===null){this.currentDirection=CS(x),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",f.point,x),this.updateAxis("y",f.point,x),this.visualElement.render(),v&&v(c,f)},a=(c,f)=>this.stop(c,f),l=()=>Ze(c=>{var f;return this.getAnimationState(c)==="paused"&&((f=this.getAxisMotionValue(c).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Km(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Jm(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&Z.update(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!ni(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=uS(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&Jn(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=cS(o.layoutBox,n):this.constraints=!1,this.elastic=hS(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Ze(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=pS(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Jn(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=xS(r,o.root,this.visualElement.getTransformPagePoint());let s=fS(o.layout.layoutBox,i);if(n){const a=n(mS(s));this.hasMutatedConstraints=!!a,a&&(s=Qm(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Ze(c=>{if(!ni(c,n,this.currentDirection))return;let f=l&&l[c]||{};s&&(f={min:0,max:0});const d=o?200:1e6,h=o?40:1e7,y={type:"inertia",velocity:r?t[c]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(c,y)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Uu(t,r,0,n))}stopAnimation(){Ze(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ze(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Ze(n=>{const{drag:r}=this.getProps();if(!ni(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n];i.set(t[n]-oe(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Jn(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Ze(s=>{const a=this.getAxisMotionValue(s);if(a){const l=a.get();o[s]=dS({min:l,max:l},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ze(s=>{if(!ni(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(oe(l,u,o[s]))})}addListeners(){if(!this.visualElement.current)return;SS.set(this.visualElement,this);const t=this.visualElement.current,n=At(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Jn(l)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),r();const s=Et(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Ze(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=l[c].translate,f.set(f.get()+l[c].translate))}),this.visualElement.render())});return()=>{s(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=wl,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function ni(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function CS(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class PS extends un{constructor(t){super(t),this.removeGroupControls=ue,this.removeListeners=ue,this.controls=new TS(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ue}unmount(){this.removeGroupControls(),this.removeListeners()}}const Hf=e=>(t,n)=>{e&&Z.update(()=>e(t,n))};class ES extends un{constructor(){super(...arguments),this.removePointerDownListener=ue}onPointerDown(t){this.session=new Km(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Jm(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Hf(t),onStart:Hf(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&Z.update(()=>o(i,s))}}}mount(){this.removePointerDownListener=At(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function kS(){const e=S.useContext(Eu);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=S.useId();return S.useEffect(()=>r(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}const xi={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Wf(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const br={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(V.test(e))e=parseFloat(e);else return e;const n=Wf(e,t.target.x),r=Wf(e,t.target.y);return`${n}% ${r}%`}},AS={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=on.parse(e);if(o.length>5)return r;const i=on.createTransformer(e),s=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const u=oe(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=u),typeof o[3+s]=="number"&&(o[3+s]/=u),i(o)}};class RS extends le.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;b1(MS),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),xi.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,s=r.projection;return s&&(s.isPresent=i,o||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||Z.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function eg(e){const[t,n]=kS(),r=S.useContext(Qh);return le.createElement(RS,{...e,layoutGroup:r,switchLayoutGroup:S.useContext(Xh),isPresent:t,safeToRemove:n})}const MS={borderRadius:{...br,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:br,borderTopRightRadius:br,borderBottomLeftRadius:br,borderBottomRightRadius:br,boxShadow:AS},tg=["TopLeft","TopRight","BottomLeft","BottomRight"],LS=tg.length,Gf=e=>typeof e=="string"?parseFloat(e):e,Kf=e=>typeof e=="number"||V.test(e);function NS(e,t,n,r,o,i){o?(e.opacity=oe(0,n.opacity!==void 0?n.opacity:1,OS(r)),e.opacityExit=oe(t.opacity!==void 0?t.opacity:1,0,DS(r))):i&&(e.opacity=oe(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;srt?1:n(To(e,t,r))}function Qf(e,t){e.min=t.min,e.max=t.max}function Xe(e,t){Qf(e.x,t.x),Qf(e.y,t.y)}function Xf(e,t,n,r,o){return e-=t,e=Ji(e,1/n,r),o!==void 0&&(e=Ji(e,1/o,r)),e}function bS(e,t=0,n=1,r=.5,o,i=e,s=e){if(yt.test(t)&&(t=parseFloat(t),t=oe(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=oe(i.min,i.max,r);e===i&&(a-=t),e.min=Xf(e.min,t,n,a,o),e.max=Xf(e.max,t,n,a,o)}function Zf(e,t,[n,r,o],i,s){bS(e,t[n],t[r],t[o],t.scale,i,s)}const _S=["x","scaleX","originX"],VS=["y","scaleY","originY"];function qf(e,t,n,r){Zf(e.x,t,_S,n?n.x:void 0,r?r.x:void 0),Zf(e.y,t,VS,n?n.y:void 0,r?r.y:void 0)}function Jf(e){return e.translate===0&&e.scale===1}function rg(e){return Jf(e.x)&&Jf(e.y)}function IS(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function og(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function ed(e){return Ke(e.x)/Ke(e.y)}class jS{constructor(){this.members=[]}add(t){$u(this.members,t),t.scheduleRender()}remove(t){if(Hu(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function td(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:l,rotateX:u,rotateY:c}=n;l&&(r+=`rotate(${l}deg) `),u&&(r+=`rotateX(${u}deg) `),c&&(r+=`rotateY(${c}deg) `)}const s=e.x.scale*t.x,a=e.y.scale*t.y;return(s!==1||a!==1)&&(r+=`scale(${s}, ${a})`),r||"none"}const FS=(e,t)=>e.depth-t.depth;class zS{constructor(){this.children=[],this.isDirty=!1}add(t){$u(this.children,t),this.isDirty=!0}remove(t){Hu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(FS),this.isDirty=!1,this.children.forEach(t)}}function BS(e,t){const n=performance.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Dt(r),e(i-t))};return Z.read(r,!0),()=>Dt(r)}function US(e){window.MotionDebug&&window.MotionDebug.record(e)}function $S(e){return e instanceof SVGElement&&e.tagName!=="svg"}function HS(e,t,n){const r=Fe(e)?e:vr(e);return r.start(Uu("",r,t,n)),r.animation}const nd=["","X","Y","Z"],WS={visibility:"hidden"},rd=1e3;let GS=0;const gn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function ig({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t==null?void 0:t()){this.id=GS++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,gn.totalNodes=gn.resolvedTargetDeltas=gn.recalculatedProjection=0,this.nodes.forEach(QS),this.nodes.forEach(eT),this.nodes.forEach(tT),this.nodes.forEach(XS),US(gn)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=BS(d,250),xi.hasAnimatedSinceResize&&(xi.hasAnimatedSinceResize=!1,this.nodes.forEach(id))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:h,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||c.getDefaultTransition()||sT,{onLayoutAnimationStart:x,onLayoutAnimationComplete:g}=c.getProps(),p=!this.targetLayout||!og(this.targetLayout,y)||h,m=!d&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||m||d&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,m);const w={...Bu(v,"layout"),onPlay:x,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else d||id(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Dt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(nT),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;cthis.update()))}clearAllSnapshots(){this.nodes.forEach(ZS),this.sharedNodes.forEach(rT)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Z.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Z.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const T=w/1e3;sd(f.x,s.x,T),sd(f.y,s.y,T),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(eo(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),oT(this.relativeTarget,this.relativeTargetOrigin,d,T),m&&IS(this.relativeTarget,m)&&(this.isProjectionDirty=!1),m||(m=de()),Xe(m,this.relativeTarget)),v&&(this.animationValues=c,NS(c,u,this.latestValues,T,p,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=T},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Dt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Z.update(()=>{xi.hasAnimatedSinceResize=!0,this.currentAnimation=HS(0,rd,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(rd),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&sg(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||de();const f=Ke(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+f;const d=Ke(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+d}Xe(a,l),nr(a,c),Jr(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new jS),this.sharedNodes.get(s).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const u={};for(let c=0;c{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(od),this.root.sharedNodes.clear()}}}function KS(e){e.updateLayout()}function YS(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,s=n.source!==e.layout.source;i==="size"?Ze(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],h=Ke(d);d.min=r[f].min,d.max=d.min+h}):sg(i,n.layoutBox,r)&&Ze(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],h=Ke(r[f]);d.max=d.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const a=tr();Jr(a,r,n.layoutBox);const l=tr();s?Jr(l,e.applyTransform(o,!0),n.measuredBox):Jr(l,r,n.layoutBox);const u=!rg(a);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:h}=f;if(d&&h){const y=de();eo(y,n.layoutBox,d.layoutBox);const v=de();eo(v,r,h.layoutBox),og(y,v)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=y,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function QS(e){gn.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function XS(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ZS(e){e.clearSnapshot()}function od(e){e.clearMeasurements()}function qS(e){e.isLayoutDirty=!1}function JS(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function id(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function eT(e){e.resolveTargetDelta()}function tT(e){e.calcProjection()}function nT(e){e.resetRotation()}function rT(e){e.removeLeadSnapshot()}function sd(e,t,n){e.translate=oe(t.translate,0,n),e.scale=oe(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function ad(e,t,n,r){e.min=oe(t.min,n.min,r),e.max=oe(t.max,n.max,r)}function oT(e,t,n,r){ad(e.x,t.x,n.x,r),ad(e.y,t.y,n.y,r)}function iT(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const sT={duration:.45,ease:[.4,0,.1,1]},ld=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),ud=ld("applewebkit/")&&!ld("chrome/")?Math.round:ue;function cd(e){e.min=ud(e.min),e.max=ud(e.max)}function aT(e){cd(e.x),cd(e.y)}function sg(e,t,n){return e==="position"||e==="preserve-aspect"&&!yl(ed(t),ed(n),.2)}const lT=ig({attachResizeListener:(e,t)=>Et(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),fa={current:void 0},ag=ig({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!fa.current){const e=new lT({});e.mount(window),e.setOptions({layoutScroll:!0}),fa.current=e}return fa.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),uT={pan:{Feature:ES},drag:{Feature:PS,ProjectionNode:ag,MeasureLayout:eg}},cT=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function fT(e){const t=cT.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function Tl(e,t,n=1){const[r,o]=fT(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return $m(s)?parseFloat(s):s}else return fl(o)?Tl(o,t,n+1):o}function dT(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(o=>{const i=o.get();if(!fl(i))return;const s=Tl(i,r);s&&o.set(s)});for(const o in t){const i=t[o];if(!fl(i))continue;const s=Tl(i,r);s&&(t[o]=s,n||(n={}),n[o]===void 0&&(n[o]=i))}return{target:t,transitionEnd:n}}const pT=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),lg=e=>pT.has(e),hT=e=>Object.keys(e).some(lg),fd=e=>e===_n||e===V,dd=(e,t)=>parseFloat(e.split(", ")[t]),pd=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return dd(o[1],t);{const i=r.match(/^matrix\((.+)\)$/);return i?dd(i[1],e):0}},mT=new Set(["x","y","z"]),gT=Mo.filter(e=>!mT.has(e));function vT(e){const t=[];return gT.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const yr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:pd(4,13),y:pd(5,14)};yr.translateX=yr.x;yr.translateY=yr.y;const yT=(e,t,n)=>{const r=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:s}=i,a={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(u=>{a[u]=yr[u](r,i)}),t.render();const l=t.measureViewportBox();return n.forEach(u=>{const c=t.getValue(u);c&&c.jump(a[u]),e[u]=yr[u](l,i)}),e},wT=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(lg);let i=[],s=!1;const a=[];if(o.forEach(l=>{const u=e.getValue(l);if(!e.hasValue(l))return;let c=n[l],f=Dr(c);const d=t[l];let h;if(Yi(d)){const y=d.length,v=d[0]===null?1:0;c=d[v],f=Dr(c);for(let x=v;x=0?window.pageYOffset:null,u=yT(t,e,a);return i.length&&i.forEach(([c,f])=>{e.getValue(c).set(f)}),e.render(),ws&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function xT(e,t,n,r){return hT(t)?wT(e,t,n,r):{target:t,transitionEnd:r}}const ST=(e,t,n,r)=>{const o=dT(e,t,r);return t=o.target,r=o.transitionEnd,xT(e,t,n,r)},Cl={current:null},ug={current:!1};function TT(){if(ug.current=!0,!!ws)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Cl.current=e.matches;e.addListener(t),t()}else Cl.current=!1}function CT(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],s=n[o];if(Fe(i))e.addValue(o,i),qi(r)&&r.add(o);else if(Fe(s))e.addValue(o,vr(i,{owner:e})),qi(r)&&r.remove(o);else if(s!==i)if(e.hasValue(o)){const a=e.getValue(o);!a.hasAnimated&&a.set(i)}else{const a=e.getStaticValue(o);e.addValue(o,vr(a!==void 0?a:i,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const hd=new WeakMap,cg=Object.keys(So),PT=cg.length,md=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],ET=Ru.length;class kT{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,visualState:i},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Z.render(this.render,!1,!0);const{latestValues:a,renderState:l}=i;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=s,this.isControllingVariants=Ss(n),this.isVariantNode=Yh(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(n,{});for(const f in c){const d=c[f];a[f]!==void 0&&Fe(d)&&(d.set(a[f],!1),qi(u)&&u.add(f))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,hd.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),ug.current||TT(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Cl.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){hd.delete(this.current),this.projection&&this.projection.unmount(),Dt(this.notifyUpdate),Dt(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=bn.has(t),o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Z.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,o,i){let s,a;for(let l=0;lthis.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:i,layoutScroll:d,layoutRoot:h})}return a}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):de()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=vr(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,o=typeof r=="string"||typeof r=="object"?(n=_u(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Fe(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Wu),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class fg extends kT{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:o},i){let s=$x(r,t||{},this);if(o&&(n&&(n=o(n)),r&&(r=o(r)),s&&(s=o(s))),i){Bx(this,r,s);const a=ST(this,r,s,n);n=a.transitionEnd,r=a.target}return{transition:t,transitionEnd:n,...r}}}function AT(e){return window.getComputedStyle(e)}class RT extends fg{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(bn.has(n)){const r=zu(n);return r&&r.default||0}else{const r=AT(t),o=(Jh(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return qm(t,n)}build(t,n,r,o){Lu(t,n,r,o.transformTemplate)}scrapeMotionValuesFromProps(t,n){return bu(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Fe(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,o){im(t,n,r,o)}}class MT extends fg{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(bn.has(n)){const r=zu(n);return r&&r.default||0}return n=sm.has(n)?n:ku(n),t.getAttribute(n)}measureInstanceViewportBox(){return de()}scrapeMotionValuesFromProps(t,n){return lm(t,n)}build(t,n,r,o){Ou(t,n,r,this.isSVGTag,o.transformTemplate)}renderInstance(t,n,r,o){am(t,n,r,o)}mount(t){this.isSVGTag=Du(t.tagName),super.mount(t)}}const LT=(e,t)=>Mu(e)?new MT(t,{enableHardwareAcceleration:!1}):new RT(t,{enableHardwareAcceleration:!0}),NT={layout:{ProjectionNode:ag,MeasureLayout:eg}},OT={...oS,...Pw,...uT,...NT},Oe=O1((e,t)=>fw(e,t,OT,LT));var DT={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const bT=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Do=(e,t)=>{const n=S.forwardRef(({color:r="currentColor",size:o=24,strokeWidth:i=2,absoluteStrokeWidth:s,children:a,...l},u)=>S.createElement("svg",{ref:u,...DT,width:o,height:o,stroke:r,strokeWidth:s?Number(i)*24/Number(o):i,className:`lucide lucide-${bT(e)}`,...l},[...t.map(([c,f])=>S.createElement(c,f)),...(Array.isArray(a)?a:[a])||[]]));return n.displayName=`${e}`,n},_T=Do("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"2",x2:"22",y1:"12",y2:"12",key:"1dnqot"}],["path",{d:"M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z",key:"nb9nel"}]]),VT=Do("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]),IT=Do("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]),jT=Do("Sparkles",[["path",{d:"m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z",key:"17u4zn"}],["path",{d:"M5 3v4",key:"bklmnn"}],["path",{d:"M19 17v4",key:"iiml17"}],["path",{d:"M3 5h4",key:"nem4j1"}],["path",{d:"M17 19h4",key:"lbex7p"}]]),FT=Do("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function dg(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;te&&(t=0,r=n,n=new Map)}return{get:function(s){var a=n.get(s);if(a!==void 0)return a;if((a=r.get(s))!==void 0)return o(s,a),a},set:function(s,a){n.has(s)?n.set(s,a):o(s,a)}}}var gg="!";function KT(e){var t=e.separator||":",n=t.length===1,r=t[0],o=t.length;return function(s){for(var a=[],l=0,u=0,c,f=0;fu?c-u:void 0;return{modifiers:a,hasImportantModifier:y,baseClassName:v,maybePostfixModifierPosition:x}}}function YT(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var o=r[0]==="[";o?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function QT(e){return{cache:GT(e.cacheSize),splitModifiers:KT(e),...BT(e)}}var XT=/\s+/;function ZT(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,i=new Set;return e.trim().split(XT).map(function(s){var a=n(s),l=a.modifiers,u=a.hasImportantModifier,c=a.baseClassName,f=a.maybePostfixModifierPosition,d=r(f?c.substring(0,f):c),h=!!f;if(!d){if(!f)return{isTailwindClass:!1,originalClassName:s};if(d=r(c),!d)return{isTailwindClass:!1,originalClassName:s};h=!1}var y=YT(l).join(":"),v=u?y+gg:y;return{isTailwindClass:!0,modifierId:v,classGroupId:d,originalClassName:s,hasPostfixModifier:h}}).reverse().filter(function(s){if(!s.isTailwindClass)return!0;var a=s.modifierId,l=s.classGroupId,u=s.hasPostfixModifier,c=a+l;return i.has(c)?!1:(i.add(c),o(l,u).forEach(function(f){return i.add(a+f)}),!0)}).reverse().map(function(s){return s.originalClassName}).join(" ")}function qT(){for(var e=arguments.length,t=new Array(e),n=0;n{let n=!1;const r=e.map(o=>{const i=wd(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o{const{children:i,...s}=r,a=S.Children.toArray(i),l=a.find(vC);if(l){const u=l.props.children,c=a.map(f=>f===l?S.Children.count(u)>1?S.Children.only(null):S.isValidElement(u)?u.props.children:null:f);return E.jsx(t,{...s,ref:o,children:S.isValidElement(u)?S.cloneElement(u,void 0,c):null})}return E.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var hC=es("Slot");function mC(e){const t=S.forwardRef((n,r)=>{const{children:o,...i}=n;if(S.isValidElement(o)){const s=wC(o),a=yC(i,o.props);return o.type!==S.Fragment&&(a.ref=r?wg(r,s):s),S.cloneElement(o,a)}return S.Children.count(o)>1?S.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var gC=Symbol("radix.slottable");function vC(e){return S.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===gC}function yC(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{const l=i(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function wC(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const xd=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Sd=pg,xg=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Sd(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(u=>{const c=n==null?void 0:n[u],f=i==null?void 0:i[u];if(c===null)return null;const d=xd(c)||xd(f);return o[u][d]}),a=n&&Object.entries(n).reduce((u,c)=>{let[f,d]=c;return d===void 0||(u[f]=d),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:f,className:d,...h}=c;return Object.entries(h).every(y=>{let[v,x]=y;return Array.isArray(x)?x.includes({...i,...a}[v]):{...i,...a}[v]===x})?[...u,f,d]:u},[]);return Sd(e,s,l,n==null?void 0:n.class,n==null?void 0:n.className)},xC=xg("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),kl=le.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>{const s=r?hC:"button";return E.jsx(s,{className:In(xC({variant:t,size:n,className:e})),ref:i,...o})});kl.displayName="Button";function $e(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Sg(e,t=[]){let n=[];function r(i,s){const a=S.createContext(s),l=n.length;n=[...n,s];const u=f=>{var g;const{scope:d,children:h,...y}=f,v=((g=d==null?void 0:d[e])==null?void 0:g[l])||a,x=S.useMemo(()=>y,Object.values(y));return E.jsx(v.Provider,{value:x,children:h})};u.displayName=i+"Provider";function c(f,d){var v;const h=((v=d==null?void 0:d[e])==null?void 0:v[l])||a,y=S.useContext(h);if(y)return y;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[u,c]}const o=()=>{const i=n.map(s=>S.createContext(s));return function(a){const l=(a==null?void 0:a[e])||i;return S.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,SC(o,...t)]}function SC(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:l,scopeName:u})=>{const f=l(i)[`__scope${u}`];return{...a,...f}},{});return S.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function TC(e){const t=e+"CollectionProvider",[n,r]=Sg(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=v=>{const{scope:x,children:g}=v,p=le.useRef(null),m=le.useRef(new Map).current;return E.jsx(o,{scope:x,itemMap:m,collectionRef:p,children:g})};s.displayName=t;const a=e+"CollectionSlot",l=es(a),u=le.forwardRef((v,x)=>{const{scope:g,children:p}=v,m=i(a,g),w=Ln(x,m.collectionRef);return E.jsx(l,{ref:w,children:p})});u.displayName=a;const c=e+"CollectionItemSlot",f="data-radix-collection-item",d=es(c),h=le.forwardRef((v,x)=>{const{scope:g,children:p,...m}=v,w=le.useRef(null),T=Ln(x,w),P=i(c,g);return le.useEffect(()=>(P.itemMap.set(w,{ref:w,...m}),()=>void P.itemMap.delete(w))),E.jsx(d,{[f]:"",ref:T,children:p})});h.displayName=c;function y(v){const x=i(e+"CollectionConsumer",v);return le.useCallback(()=>{const p=x.collectionRef.current;if(!p)return[];const m=Array.from(p.querySelectorAll(`[${f}]`));return Array.from(x.itemMap.values()).sort((P,C)=>m.indexOf(P.ref.current)-m.indexOf(C.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:s,Slot:u,ItemSlot:h},y,r]}var CC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],wt=CC.reduce((e,t)=>{const n=es(`Primitive.${t}`),r=S.forwardRef((o,i)=>{const{asChild:s,...a}=o,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),E.jsx(l,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Tg(e,t){e&&vs.flushSync(()=>e.dispatchEvent(t))}function Nn(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e}),S.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function PC(e,t=globalThis==null?void 0:globalThis.document){const n=Nn(e);S.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var EC="DismissableLayer",Al="dismissableLayer.update",kC="dismissableLayer.pointerDownOutside",AC="dismissableLayer.focusOutside",Td,Cg=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Pg=S.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...l}=e,u=S.useContext(Cg),[c,f]=S.useState(null),d=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=S.useState({}),y=Ln(t,C=>f(C)),v=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),g=v.indexOf(x),p=c?v.indexOf(c):-1,m=u.layersWithOutsidePointerEventsDisabled.size>0,w=p>=g,T=MC(C=>{const k=C.target,O=[...u.branches].some(D=>D.contains(k));!w||O||(o==null||o(C),s==null||s(C),C.defaultPrevented||a==null||a())},d),P=LC(C=>{const k=C.target;[...u.branches].some(D=>D.contains(k))||(i==null||i(C),s==null||s(C),C.defaultPrevented||a==null||a())},d);return PC(C=>{p===u.layers.size-1&&(r==null||r(C),!C.defaultPrevented&&a&&(C.preventDefault(),a()))},d),S.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Td=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),Cd(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=Td)}},[c,d,n,u]),S.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),Cd())},[c,u]),S.useEffect(()=>{const C=()=>h({});return document.addEventListener(Al,C),()=>document.removeEventListener(Al,C)},[]),E.jsx(wt.div,{...l,ref:y,style:{pointerEvents:m?w?"auto":"none":void 0,...e.style},onFocusCapture:$e(e.onFocusCapture,P.onFocusCapture),onBlurCapture:$e(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:$e(e.onPointerDownCapture,T.onPointerDownCapture)})});Pg.displayName=EC;var RC="DismissableLayerBranch",Eg=S.forwardRef((e,t)=>{const n=S.useContext(Cg),r=S.useRef(null),o=Ln(t,r);return S.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),E.jsx(wt.div,{...e,ref:o})});Eg.displayName=RC;function MC(e,t=globalThis==null?void 0:globalThis.document){const n=Nn(e),r=S.useRef(!1),o=S.useRef(()=>{});return S.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){kg(kC,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function LC(e,t=globalThis==null?void 0:globalThis.document){const n=Nn(e),r=S.useRef(!1);return S.useEffect(()=>{const o=i=>{i.target&&!r.current&&kg(AC,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Cd(){const e=new CustomEvent(Al);document.dispatchEvent(e)}function kg(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Tg(o,i):o.dispatchEvent(i)}var NC=Pg,OC=Eg,Co=globalThis!=null&&globalThis.document?S.useLayoutEffect:()=>{},DC="Portal",Ag=S.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,i]=S.useState(!1);Co(()=>i(!0),[]);const s=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?A0.createPortal(E.jsx(wt.div,{...r,ref:t}),s):null});Ag.displayName=DC;function bC(e,t){return S.useReducer((n,r)=>t[n][r]??n,e)}var Rg=e=>{const{present:t,children:n}=e,r=_C(t),o=typeof n=="function"?n({present:r.isPresent}):S.Children.only(n),i=Ln(r.ref,VC(o));return typeof n=="function"||r.isPresent?S.cloneElement(o,{ref:i}):null};Rg.displayName="Presence";function _C(e){const[t,n]=S.useState(),r=S.useRef(null),o=S.useRef(e),i=S.useRef("none"),s=e?"mounted":"unmounted",[a,l]=bC(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const u=oi(r.current);i.current=a==="mounted"?u:"none"},[a]),Co(()=>{const u=r.current,c=o.current;if(c!==e){const d=i.current,h=oi(u);e?l("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&d!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Co(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,f=h=>{const v=oi(r.current).includes(CSS.escape(h.animationName));if(h.target===t&&v&&(l("ANIMATION_END"),!o.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},d=h=>{h.target===t&&(i.current=oi(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:S.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function oi(e){return(e==null?void 0:e.animationName)||"none"}function VC(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var IC=gv[" useInsertionEffect ".trim().toString()]||Co;function jC({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=FC({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:o;{const c=S.useRef(e!==void 0);S.useEffect(()=>{const f=c.current;f!==a&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),c.current=a},[a,r])}const u=S.useCallback(c=>{var f;if(a){const d=zC(c)?c(e):c;d!==e&&((f=s.current)==null||f.call(s,d))}else i(c)},[a,e,i,s]);return[l,u]}function FC({defaultProp:e,onChange:t}){const[n,r]=S.useState(e),o=S.useRef(n),i=S.useRef(t);return IC(()=>{i.current=t},[t]),S.useEffect(()=>{var s;o.current!==n&&((s=i.current)==null||s.call(i,n),o.current=n)},[n,o]),[n,r,i]}function zC(e){return typeof e=="function"}var BC=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),UC="VisuallyHidden",Ku=S.forwardRef((e,t)=>E.jsx(wt.span,{...e,ref:t,style:{...BC,...e.style}}));Ku.displayName=UC;var Yu="ToastProvider",[Qu,$C,HC]=TC("Toast"),[Mg,yP]=Sg("Toast",[HC]),[WC,Es]=Mg(Yu),Lg=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:s}=e,[a,l]=S.useState(null),[u,c]=S.useState(0),f=S.useRef(!1),d=S.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Yu}\`. Expected non-empty \`string\`.`),E.jsx(Qu.Provider,{scope:t,children:E.jsx(WC,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:S.useCallback(()=>c(h=>h+1),[]),onToastRemove:S.useCallback(()=>c(h=>h-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:d,children:s})})};Lg.displayName=Yu;var Ng="ToastViewport",GC=["F8"],Rl="toast.viewportPause",Ml="toast.viewportResume",Og=S.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=GC,label:o="Notifications ({hotkey})",...i}=e,s=Es(Ng,n),a=$C(n),l=S.useRef(null),u=S.useRef(null),c=S.useRef(null),f=S.useRef(null),d=Ln(t,f,s.onViewportChange),h=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),y=s.toastCount>0;S.useEffect(()=>{const x=g=>{var m;r.length!==0&&r.every(w=>g[w]||g.code===w)&&((m=f.current)==null||m.focus())};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[r]),S.useEffect(()=>{const x=l.current,g=f.current;if(y&&x&&g){const p=()=>{if(!s.isClosePausedRef.current){const P=new CustomEvent(Rl);g.dispatchEvent(P),s.isClosePausedRef.current=!0}},m=()=>{if(s.isClosePausedRef.current){const P=new CustomEvent(Ml);g.dispatchEvent(P),s.isClosePausedRef.current=!1}},w=P=>{!x.contains(P.relatedTarget)&&m()},T=()=>{x.contains(document.activeElement)||m()};return x.addEventListener("focusin",p),x.addEventListener("focusout",w),x.addEventListener("pointermove",p),x.addEventListener("pointerleave",T),window.addEventListener("blur",p),window.addEventListener("focus",m),()=>{x.removeEventListener("focusin",p),x.removeEventListener("focusout",w),x.removeEventListener("pointermove",p),x.removeEventListener("pointerleave",T),window.removeEventListener("blur",p),window.removeEventListener("focus",m)}}},[y,s.isClosePausedRef]);const v=S.useCallback(({tabbingDirection:x})=>{const p=a().map(m=>{const w=m.ref.current,T=[w,...iP(w)];return x==="forwards"?T:T.reverse()});return(x==="forwards"?p.reverse():p).flat()},[a]);return S.useEffect(()=>{const x=f.current;if(x){const g=p=>{var T,P,C;const m=p.altKey||p.ctrlKey||p.metaKey;if(p.key==="Tab"&&!m){const k=document.activeElement,O=p.shiftKey;if(p.target===x&&O){(T=u.current)==null||T.focus();return}const _=v({tabbingDirection:O?"backwards":"forwards"}),ne=_.findIndex(L=>L===k);da(_.slice(ne+1))?p.preventDefault():O?(P=u.current)==null||P.focus():(C=c.current)==null||C.focus()}};return x.addEventListener("keydown",g),()=>x.removeEventListener("keydown",g)}},[a,v]),E.jsxs(OC,{ref:l,role:"region","aria-label":o.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:y?void 0:"none"},children:[y&&E.jsx(Ll,{ref:u,onFocusFromOutsideViewport:()=>{const x=v({tabbingDirection:"forwards"});da(x)}}),E.jsx(Qu.Slot,{scope:n,children:E.jsx(wt.ol,{tabIndex:-1,...i,ref:d})}),y&&E.jsx(Ll,{ref:c,onFocusFromOutsideViewport:()=>{const x=v({tabbingDirection:"backwards"});da(x)}})]})});Og.displayName=Ng;var Dg="ToastFocusProxy",Ll=S.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=Es(Dg,n);return E.jsx(Ku,{tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:s=>{var u;const a=s.relatedTarget;!((u=i.viewport)!=null&&u.contains(a))&&r()}})});Ll.displayName=Dg;var bo="Toast",KC="toast.swipeStart",YC="toast.swipeMove",QC="toast.swipeCancel",XC="toast.swipeEnd",bg=S.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...s}=e,[a,l]=jC({prop:r,defaultProp:o??!0,onChange:i,caller:bo});return E.jsx(Rg,{present:n||a,children:E.jsx(JC,{open:a,...s,ref:t,onClose:()=>l(!1),onPause:Nn(e.onPause),onResume:Nn(e.onResume),onSwipeStart:$e(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:$e(e.onSwipeMove,u=>{const{x:c,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:$e(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:$e(e.onSwipeEnd,u=>{const{x:c,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),l(!1)})})})});bg.displayName=bo;var[ZC,qC]=Mg(bo,{onClose(){}}),JC=S.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:s,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:c,onSwipeMove:f,onSwipeCancel:d,onSwipeEnd:h,...y}=e,v=Es(bo,n),[x,g]=S.useState(null),p=Ln(t,L=>g(L)),m=S.useRef(null),w=S.useRef(null),T=o||v.duration,P=S.useRef(0),C=S.useRef(T),k=S.useRef(0),{onToastAdd:O,onToastRemove:D}=v,H=Nn(()=>{var q;(x==null?void 0:x.contains(document.activeElement))&&((q=v.viewport)==null||q.focus()),s()}),_=S.useCallback(L=>{!L||L===1/0||(window.clearTimeout(k.current),P.current=new Date().getTime(),k.current=window.setTimeout(H,L))},[H]);S.useEffect(()=>{const L=v.viewport;if(L){const q=()=>{_(C.current),u==null||u()},B=()=>{const ce=new Date().getTime()-P.current;C.current=C.current-ce,window.clearTimeout(k.current),l==null||l()};return L.addEventListener(Rl,B),L.addEventListener(Ml,q),()=>{L.removeEventListener(Rl,B),L.removeEventListener(Ml,q)}}},[v.viewport,T,l,u,_]),S.useEffect(()=>{i&&!v.isClosePausedRef.current&&_(T)},[i,T,v.isClosePausedRef,_]),S.useEffect(()=>(O(),()=>D()),[O,D]);const ne=S.useMemo(()=>x?Bg(x):null,[x]);return v.viewport?E.jsxs(E.Fragment,{children:[ne&&E.jsx(eP,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite",children:ne}),E.jsx(ZC,{scope:n,onClose:H,children:vs.createPortal(E.jsx(Qu.ItemSlot,{scope:n,children:E.jsx(NC,{asChild:!0,onEscapeKeyDown:$e(a,()=>{v.isFocusedToastEscapeKeyDownRef.current||H(),v.isFocusedToastEscapeKeyDownRef.current=!1}),children:E.jsx(wt.li,{tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":v.swipeDirection,...y,ref:p,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:$e(e.onKeyDown,L=>{L.key==="Escape"&&(a==null||a(L.nativeEvent),L.nativeEvent.defaultPrevented||(v.isFocusedToastEscapeKeyDownRef.current=!0,H()))}),onPointerDown:$e(e.onPointerDown,L=>{L.button===0&&(m.current={x:L.clientX,y:L.clientY})}),onPointerMove:$e(e.onPointerMove,L=>{if(!m.current)return;const q=L.clientX-m.current.x,B=L.clientY-m.current.y,ce=!!w.current,R=["left","right"].includes(v.swipeDirection),N=["left","up"].includes(v.swipeDirection)?Math.min:Math.max,I=R?N(0,q):0,b=R?0:N(0,B),U=L.pointerType==="touch"?10:2,G={x:I,y:b},ze={originalEvent:L,delta:G};ce?(w.current=G,ii(YC,f,ze,{discrete:!1})):Pd(G,v.swipeDirection,U)?(w.current=G,ii(KC,c,ze,{discrete:!1}),L.target.setPointerCapture(L.pointerId)):(Math.abs(q)>U||Math.abs(B)>U)&&(m.current=null)}),onPointerUp:$e(e.onPointerUp,L=>{const q=w.current,B=L.target;if(B.hasPointerCapture(L.pointerId)&&B.releasePointerCapture(L.pointerId),w.current=null,m.current=null,q){const ce=L.currentTarget,R={originalEvent:L,delta:q};Pd(q,v.swipeDirection,v.swipeThreshold)?ii(XC,h,R,{discrete:!0}):ii(QC,d,R,{discrete:!0}),ce.addEventListener("click",N=>N.preventDefault(),{once:!0})}})})})}),v.viewport)})]}):null}),eP=e=>{const{__scopeToast:t,children:n,...r}=e,o=Es(bo,t),[i,s]=S.useState(!1),[a,l]=S.useState(!1);return rP(()=>s(!0)),S.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:E.jsx(Ag,{asChild:!0,children:E.jsx(Ku,{...r,children:i&&E.jsxs(E.Fragment,{children:[o.label," ",n]})})})},tP="ToastTitle",_g=S.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return E.jsx(wt.div,{...r,ref:t})});_g.displayName=tP;var nP="ToastDescription",Vg=S.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return E.jsx(wt.div,{...r,ref:t})});Vg.displayName=nP;var Ig="ToastAction",jg=S.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?E.jsx(zg,{altText:n,asChild:!0,children:E.jsx(Xu,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Ig}\`. Expected non-empty \`string\`.`),null)});jg.displayName=Ig;var Fg="ToastClose",Xu=S.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=qC(Fg,n);return E.jsx(zg,{asChild:!0,children:E.jsx(wt.button,{type:"button",...r,ref:t,onClick:$e(e.onClick,o.onClose)})})});Xu.displayName=Fg;var zg=S.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return E.jsx(wt.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function Bg(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),oP(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...Bg(r))}}),t}function ii(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Tg(o,i):o.dispatchEvent(i)}var Pd=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return t==="left"||t==="right"?i&&r>n:!i&&o>n};function rP(e=()=>{}){const t=Nn(e);Co(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function oP(e){return e.nodeType===e.ELEMENT_NODE}function iP(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function da(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var sP=Lg,Ug=Og,$g=bg,Hg=_g,Wg=Vg,Gg=jg,Kg=Xu;const aP=sP,Yg=le.forwardRef(({className:e,...t},n)=>E.jsx(Ug,{ref:n,className:In("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));Yg.displayName=Ug.displayName;const lP=xg("data-[swipe=move]:transition-none group relative pointer-events-auto flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full data-[state=closed]:slide-out-to-right-full",{variants:{variant:{default:"bg-background border",destructive:"group destructive border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Qg=le.forwardRef(({className:e,variant:t,...n},r)=>E.jsx($g,{ref:r,className:In(lP({variant:t}),e),...n}));Qg.displayName=$g.displayName;const uP=le.forwardRef(({className:e,...t},n)=>E.jsx(Gg,{ref:n,className:In("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-destructive/30 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));uP.displayName=Gg.displayName;const Xg=le.forwardRef(({className:e,...t},n)=>E.jsx(Kg,{ref:n,className:In("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:E.jsx(FT,{className:"h-4 w-4"})}));Xg.displayName=Kg.displayName;const Zg=le.forwardRef(({className:e,...t},n)=>E.jsx(Hg,{ref:n,className:In("text-sm font-semibold",e),...t}));Zg.displayName=Hg.displayName;const qg=le.forwardRef(({className:e,...t},n)=>E.jsx(Wg,{ref:n,className:In("text-sm opacity-90",e),...t}));qg.displayName=Wg.displayName;const cP=1;let pa=0;function fP(){return pa=(pa+1)%Number.MAX_VALUE,pa.toString()}const Ae={state:{toasts:[]},listeners:[],getState:()=>Ae.state,setState:e=>{typeof e=="function"?Ae.state=e(Ae.state):Ae.state={...Ae.state,...e},Ae.listeners.forEach(t=>t(Ae.state))},subscribe:e=>(Ae.listeners.push(e),()=>{Ae.listeners=Ae.listeners.filter(t=>t!==e)})},dP=({...e})=>{const t=fP(),n=o=>Ae.setState(i=>({...i,toasts:i.toasts.map(s=>s.id===t?{...s,...o}:s)})),r=()=>Ae.setState(o=>({...o,toasts:o.toasts.filter(i=>i.id!==t)}));return Ae.setState(o=>({...o,toasts:[{...e,id:t,dismiss:r},...o.toasts].slice(0,cP)})),{id:t,dismiss:r,update:n}};function pP(){const[e,t]=S.useState(Ae.getState());return S.useEffect(()=>Ae.subscribe(r=>{t(r)}),[]),S.useEffect(()=>{const n=[];return e.toasts.forEach(r=>{if(r.duration===1/0)return;const o=setTimeout(()=>{r.dismiss()},r.duration||5e3);n.push(o)}),()=>{n.forEach(r=>clearTimeout(r))}},[e.toasts]),{toast:dP,toasts:e.toasts}}function hP(){const{toasts:e}=pP();return E.jsxs(aP,{children:[e.map(({id:t,title:n,description:r,action:o,...i})=>E.jsxs(Qg,{...i,children:[E.jsxs("div",{className:"grid gap-1",children:[n&&E.jsx(Zg,{children:n}),r&&E.jsx(qg,{children:r})]}),o,E.jsx(Xg,{})]},t)),E.jsx(Yg,{})]})}function mP(){const e=()=>{window.location.href="tel:+919519455558"},t=()=>{window.location.href="mailto:rayansingh2502@gmail.com"};return E.jsxs(E.Fragment,{children:[E.jsxs(cl,{children:[E.jsx("title",{children:"This Domain is for Sale | Premium Domain Available"}),E.jsx("meta",{name:"description",content:"Premium domain for sale. We can help you develop your website. Contact Rayan Singh for inquiries and web development services."})]}),E.jsxs("div",{className:"min-h-screen flex flex-col items-center justify-center p-4 relative overflow-hidden",children:[E.jsxs("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:[E.jsx(Oe.div,{className:"absolute top-20 left-10 w-72 h-72 bg-purple-500/20 rounded-full blur-3xl",animate:{scale:[1,1.2,1],opacity:[.3,.5,.3]},transition:{duration:8,repeat:1/0,ease:"easeInOut"}}),E.jsx(Oe.div,{className:"absolute bottom-20 right-10 w-96 h-96 bg-indigo-500/20 rounded-full blur-3xl",animate:{scale:[1.2,1,1.2],opacity:[.5,.3,.5]},transition:{duration:10,repeat:1/0,ease:"easeInOut"}})]}),E.jsxs(Oe.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8},className:"relative z-10 max-w-4xl w-full",children:[E.jsxs("div",{className:"text-center space-y-8 mb-16",children:[E.jsxs(Oe.div,{initial:{scale:.9,opacity:0},animate:{scale:1,opacity:1},transition:{delay:.2,duration:.6},className:"inline-flex items-center gap-2 px-6 py-3 bg-gradient-to-r from-purple-500/20 to-indigo-500/20 rounded-full border border-purple-500/30 backdrop-blur-sm",children:[E.jsx(jT,{className:"w-5 h-5 text-purple-300"}),E.jsx("span",{className:"text-purple-200 font-medium",children:"Premium Domain Available"})]}),E.jsx(Oe.h1,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.4,duration:.6},className:"text-5xl md:text-7xl font-bold bg-gradient-to-r from-purple-200 via-pink-200 to-indigo-200 bg-clip-text text-transparent leading-tight",children:"This Domain is for Sale"}),E.jsx(Oe.p,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.6,duration:.6},className:"text-xl md:text-2xl text-purple-100 max-w-2xl mx-auto",children:"Secure this premium domain and elevate your online presence"})]}),E.jsxs(Oe.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{delay:.8,duration:.6},className:"bg-gradient-to-br from-purple-900/40 to-indigo-900/40 backdrop-blur-xl rounded-3xl p-8 md:p-12 border border-purple-500/20 shadow-2xl mb-12",children:[E.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[E.jsx("div",{className:"p-3 bg-gradient-to-br from-purple-500 to-indigo-500 rounded-xl",children:E.jsx(_T,{className:"w-6 h-6 text-white"})}),E.jsx("h2",{className:"text-3xl font-bold text-white",children:"We Can Help You"})]}),E.jsx("p",{className:"text-lg text-purple-100 mb-8",children:"Looking to develop your website? Our expert team specializes in creating stunning, high-performance websites tailored to your needs. From design to deployment, we've got you covered!"}),E.jsxs("div",{className:"grid md:grid-cols-3 gap-4",children:[E.jsxs(Oe.div,{whileHover:{scale:1.05},className:"p-6 bg-gradient-to-br from-purple-800/30 to-indigo-800/30 rounded-2xl border border-purple-500/20",children:[E.jsx("span",{className:"text-4xl mb-3 block",children:"🎨"}),E.jsx("span",{className:"text-purple-100 font-semibold text-lg",children:"Custom Design"})]}),E.jsxs(Oe.div,{whileHover:{scale:1.05},className:"p-6 bg-gradient-to-br from-purple-800/30 to-indigo-800/30 rounded-2xl border border-purple-500/20",children:[E.jsx("span",{className:"text-4xl mb-3 block",children:"⚡"}),E.jsx("span",{className:"text-purple-100 font-semibold text-lg",children:"Fast Development"})]}),E.jsxs(Oe.div,{whileHover:{scale:1.05},className:"p-6 bg-gradient-to-br from-purple-800/30 to-indigo-800/30 rounded-2xl border border-purple-500/20",children:[E.jsx("span",{className:"text-4xl mb-3 block",children:"🚀"}),E.jsx("span",{className:"text-purple-100 font-semibold text-lg",children:"SEO Optimized"})]})]})]}),E.jsxs(Oe.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{delay:1,duration:.6},className:"bg-gradient-to-br from-indigo-900/40 to-purple-900/40 backdrop-blur-xl rounded-3xl p-8 md:p-12 border border-indigo-500/20 shadow-2xl",children:[E.jsx("h2",{className:"text-3xl font-bold text-center mb-8 bg-gradient-to-r from-purple-200 to-indigo-200 bg-clip-text text-transparent",children:"You Can Contact Us"}),E.jsxs("div",{className:"space-y-6 max-w-md mx-auto",children:[E.jsxs("div",{className:"text-center mb-8",children:[E.jsx("p",{className:"text-purple-200 text-lg mb-2",children:"Contact Person"}),E.jsx("p",{className:"text-2xl font-bold text-white",children:"Rayan Singh"})]}),E.jsx(Oe.div,{whileHover:{scale:1.02},whileTap:{scale:.98},children:E.jsxs(kl,{onClick:e,className:"w-full h-16 text-lg bg-gradient-to-r from-purple-600 to-indigo-600 hover:from-purple-700 hover:to-indigo-700 text-white rounded-2xl shadow-lg shadow-purple-500/30 transition-all duration-300",children:[E.jsx(IT,{className:"w-5 h-5 mr-3"}),"+91 95194 55558"]})}),E.jsx(Oe.div,{whileHover:{scale:1.02},whileTap:{scale:.98},children:E.jsxs(kl,{onClick:t,className:"w-full h-16 text-lg bg-gradient-to-r from-indigo-600 to-purple-600 hover:from-indigo-700 hover:to-purple-700 text-white rounded-2xl shadow-lg shadow-indigo-500/30 transition-all duration-300",children:[E.jsx(VT,{className:"w-5 h-5 mr-3"}),"rayansingh2502@gmail.com"]})})]})]}),E.jsx(Oe.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:1.2,duration:.6},className:"text-center mt-12",children:E.jsx("p",{className:"text-purple-300",children:"© 2025 All Rights Reserved"})})]}),E.jsx(hP,{})]})]})}ha.createRoot(document.getElementById("root")).render(E.jsx(mP,{}));